无法导入 cv2 模块 (Python 3.6)

Unable to import cv2 module (Python 3.6)

这里共有新人。

我试图为 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.5

对于 python 3.6 OpenCV 的 conda install opencv 和 conda install -c conda-forge opencv 方法在 video/image 阅读和展示。

改用下面的 pip 安装:

python -m pip install opencv-python

参考:https://www.scivision.co/install-opencv-python-windows/