我正在尝试使用pip install opencv-python安装python的opencv,但是我得到了这个错误。
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files\Python310\python.exe' 'C:\Users\gnara\AppData\Local\Temp\pip-standalone-pip-_33ltocw\__env_pip__.zip\pip' install --ignore-installed --no-user --prefix 'C:\Users\gnara\AppData\Local\Temp\pip-build-env-xl8kjguh\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel scikit-build cmake pip 'numpy==1.11.3; python_version=='"'"'3.5'"'"'' 'numpy==1.13.3; python_version=='"'"'3.6'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"''
cwd: None
ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.15.55, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48, 4.5.3.56)
ERROR: No matching distribution found for opencv-python
WARNING: You are using pip version 21.2.3; however, version 21.2.4 is available.
You should consider upgrading via the 'C:\Program Files\Python310\python.exe -m pip install --upgrade pip' command.发布于 2021-10-07 13:58:36
看来、Python3.10、.还没有。耐心点。
这个问题已经被跟踪了:https://github.com/opencv/opencv-python/issues?q=3.10
发布于 2022-08-21 23:06:58
我已经使用OpenCV在M1上使用pip install opencv-python安装了Python3.10
我希望它也能在Windows和Linux上工作。
发布于 2022-11-16 07:09:39
pip install opencv-python为我工作。
我有一个干净的环境(anaconda提示符),甚至没有安装pip,但它仍然工作。我的脚步:
conda create -n envnameconda activate envnameconda install -c anaconda numpy (我需要numpy,它安装了python 3.10)conda install opencv-python (不工作,提示我在其他channel.)pip install opencv-python中搜索)
因为opencv丢失了,所以我的程序没有工作,现在起作用了。
Numpy 1.22.3,opencv-python 4.6.0.66和python 3.10.4
还有更多,但这不在本主题的范围之内。
https://stackoverflow.com/questions/69480357
复制相似问题