Python:如何通过特定版本2.4.9 pip安装opencv2? [英] Python: How to pip install opencv2 with specific version 2.4.9?
问题描述
我知道我可以pip install opencv-python
来安装opencv3,但是opencv特定版本(例如2.4.9)是否有单独的命令或名称?
I know that I could pip install opencv-python
which installs opencv3, but is there a separate command or name for opencv specific version such as 2.4.9?
如果没有,如何指定要安装的版本?
If not, how can I specify which version to install?
谢谢.
推荐答案
通过pip
,您可以使用以下命令指定要安装的软件包版本:
Via pip
you can specify the package version to install using the following:
pip install opencv-python==2.4.9
但是,该软件包似乎在 pypi 上不可用.
However, that package does not seem to be available on pypi.
检查可用版本的小技巧:
A little trick for checking available versions:
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) No matching distribution found for 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) No matching distribution found for opencv-python==
这篇关于Python:如何通过特定版本2.4.9 pip安装opencv2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!