gpt4 book ai didi

python - 在 python 中安装 opencv

转载 作者:太空狗 更新时间:2023-10-29 20:34:40 27 4
gpt4 key购买 nike

我在安装 OpenCV 时遇到了一些问题。我一直在使用 Anaconda,我将 cv2.pyd 文件复制到 ...\Lib\site-packages 文件夹中。当我将 import cv2 键入 Python 时,出现此错误:

`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.`

我还尝试通过命令提示符进行 pip 安装:C:\Users\SCD>pip install cv2 结果:`

Collecting cv2
Could not find a version that satisfies the requirement cv2 (from versions: )
No matching distribution found for cv2`

有人可以帮忙吗?

最佳答案

有同样的问题,通过使用下面的命令安装“opencv-python”解决了:

pip install opencv-python

关于python - 在 python 中安装 opencv,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38085480/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com