我用命令安装了OpenCV
pip install OpenCV-python
在Python3.6.0中
但在代码中使用时显示错误
代码
错误
File "<stdin>", line 1, in <module>
File "C:\Users\yyy\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 866, in runfile
execfile(filename, namespace)
File "C:\Users\yyy\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/yyy/Desktop/cameraPlay.py", line 1, in <module>
import cv2
File "C:\Users\yyy\Anaconda3\lib\site-packages\cv2\__init__.py", line 7, in <module>
from . import cv2
ImportError: DLL load failed: The specified module could not be found.
我尝试了不同的问题解决方案,但没有解决我的问题。
这个问题似乎重复了以下问题:
DLL Load Failed Error when importing CV2
为了方便起见,我复制了这个问题的公认答案:
作者:@thewaywewere
相关问题 更多 >
编程相关推荐