编程语言
首页 > 编程语言> > 无法导入cv2模块(Python 3.6)

无法导入cv2模块(Python 3.6)

作者:互联网

总nexwbie在这里.

我没有成功尝试为python安装cv2模块,但它不起作用.我正在使用Python 3.6(64位)

我在cmd中输入以下命令:

C:\Users\leahj>C:\Users\leahj\AppData\Local\Programs\Python\Python36\Scripts\pip3 install cv2
Collecting cv2
  Could not find a version that satisfies the requirement cv2 (from versions: )
No matching distribution found for cv2

C:\Users\leahj>C:\Users\leahj\AppData\Local\Programs\Python\Python36\Scripts\pip3 install opencv
Collecting opencv
  Could not find a version that satisfies the requirement opencv (from versions: )
No matching distribution found for opencv

C:\Users\leahj>C:\Users\leahj\AppData\Local\Programs\Python\Python36\Scripts\pip3 install opencv2
Collecting opencv2
  Could not find a version that satisfies the requirement opencv2 (from versions: )
No matching distribution found for opencv2

我试图在这个网站上寻找答案,但找不到任何答案.我找到的最准确的事情是:https://breakthrough.github.io/Installing-OpenCV/但似乎我必须回到旧版本的Python?

解决方法:

试着做:

pip3 install opencv-python

标签:python-3-6,python,opencv,cv2
来源: https://codeday.me/bug/20190910/1800736.html