我已经执行以下操作:
我将cv2
文件夹放入了Python73-32\Lib
。从here安装cv2并将其从opencv\build\python
中取出时,cv2文件夹来自。这是我得到的错误:
Traceback (most recent call last):
File "C:\Users\oskil\OneDrive\Pulpit\TestPress.py", line 6, in <module>
import cv2
File "C:\Users\oskil\AppData\Local\Programs\Python\Python37-32\lib\cv2\__init__.py", line 89, in <module>
bootstrap()
File "C:\Users\oskil\AppData\Local\Programs\Python\Python37-32\lib\cv2\__init__.py", line 23, in bootstrap
raise ImportError('ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.')
ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.
我该如何进行呢?
答案 0 :(得分:0)
重新安装Windows修复了问题,让我使用pip install opencv-python