手动指定版本:如果你仍然遇到问题,可以尝试手动指定要安装的OpenCV版本,例如:pip install opencv-python==4.5.5。这将安装4.5.5版本的OpenCV,你可以根据需要更改版本号。 考虑使用虚拟环境:有时,你可能需要创建一个虚拟环境来安装OpenCV。虚拟环境可以帮助隔离不同项目的依赖项,避免潜在的冲突。你可以使用venv或conda等...
(most recent call last): File “/Library/Python/2.7/site-packages/pip/basecommand.py”, line 215, in main status = self.run(options, args) File “/Library/Python/2.7/site-packages/pip/commands/install.py”, line 342, in run prefix=options.prefix_path, File “/Library/Python...
// 一般用不上,直接看报错,然后对包进行升级或降级处理即可 pip check opencv-python ...
为pip 设置环境变量。请看 Setting Up Your Python Environment with Pip, VirtualEnv and PyCharm (Win...
pip install opencv-python==2.4.9 但是,该软件包似乎在 pypi 上不可用。 检查可用版本的小技巧: pip install opencv-python== 返回: Could not find a version that satisfies the requirement opencv-python== (from versions: 3.1.0.0, 3.1.0.1, 3.1.0.2, 3.1 .0.3, 3.1.0.5, 3.2.0.6, 3.2.0.7) ...
pip uninstall opencv-python Uninstalling opencv-python-3.4.0.12: /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/.dylibs/QtCore /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/.dylibs/QtGui /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/.dylibs/QtTest ...
我试图在 anaconda 中安装 OpenCV。但是当我使用它时,我发现不是使用 OpenCV,而是使用 OpenCV-python 的程序,这就是我的程序崩溃的原因。我输入“conda uninstall opencv”但它只是卸载 OpenCV 包而不是 OpenCV-...
Could not find a version that satisfies the requirement opencv-contrib-python<=3.4.2.17 (from airtest->pocoui) (from versions: ) No matching distribution found for opencv-contrib-python<=3.4.2.17 (from airtest->pocoui)
1.python下载 下载地址为:https://www.python.org/downloads/ 我下载的为3.7.6版本 由于python本身内存空间占用不大,建议直接默认安装到C盘。(安装步骤保持默认即可)安装完成后可以通过cmd指令查看是否正确安装。 通过指令便可以安装python和opencv相关的扩展包,为了便于加速,请先修改pip下载包的镜像地址,操作方法如下...