我在虚拟环境中运行Python,在这个环境中:
python -V返回:
Python 3.9.5然后我跑:
pip install opencv-contrib-python并得到:
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
ERROR: Could not find a version that satisfies the requirement opencv-contrib-python
ERROR: No matching distribution found for opencv-contrib-python如果我已经使用了最新的Python,那么需要运行哪些命令才能让opencv安装?
发布于 2021-09-25 02:51:49
我刚碰到这个。看起来是因为你的虚拟环境使用的是python3.5中的pip
这就是我收到的信息:
pip 20.3.4来自/home/user/virtproj/lib/python3.5/site-packages/pip (python3.5)
这可能是你的解决方案:
python3 -m venv -升级ENV_DIR
将环境安装到的ENV_DIR=目录。
https://stackoverflow.com/questions/67959070
复制相似问题