gpt4 book ai didi

python - 无法导入 cv2 模块(Python 3.6)

转载 作者:太空宇宙 更新时间:2023-11-03 20:56:00 24 4
gpt4 key购买 nike

这里有新的东西。

我尝试为 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 - 无法导入 cv2 模块(Python 3.6),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50909569/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com