无法导入cv2模块(Python 3.6) [英] Unable to import cv2 module (Python 3.6)

查看:118
本文介绍了无法导入cv2模块(Python 3.6)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里总的邻居.

我尝试为python安装 cv2 模块失败,但无法正常工作.我正在使用Python 3.6(64位)

I'm unsuccessfully trying to install the cv2 module for python but it doesn't work. I'm working with Python 3.6 (64bits)

我在cmd中键入了以下命令:

I typed the following commands in the 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吗?

I tried to look for answers on this site but couldn't find any. The most accurate thing I found was that : https://breakthrough.github.io/Installing-OpenCV/ but it seems that I have to go back to an older version of Python ?

推荐答案

尝试做:

pip3 install opencv-python

这篇关于无法导入cv2模块(Python 3.6)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆