简体   繁体   English

在 Python 3.5 64 位上通过 pip 安装 OpenCV

[英]Install OpenCV via pip on Python 3.5 64-bit

I tried to install OpenCV, and I couldn't find any suitable pip packages for it.我尝试安装 OpenCV,但找不到任何合适的 pip 包。 I decided to look online for official documentation on how to install it, and found this .我决定在网上查找有关如何安装它的官方文档,并找到了这个 Unfortunately, not only does this documentation only give support for versions using python 2.7, it also says to install OpenCV manually by downloading it from sourceforge rather than using a package manager like pip.不幸的是,这个文档不仅只支持使用 python 2.7 的版本,它还说通过从 sourceforge 下载它而不是使用像 pip 这样的包管理器来手动安装 OpenCV。

I want to know if there's a better or more official way of installing OpenCV in python 3.5, or failing that, a package in pip I should install instead.我想知道是否有更好或更官方的方式在 python 3.5 中安装 OpenCV,或者如果失败,我应该安装一个 pip 包。

What OS are you on?你在什么操作系统上? If it's Windows have a look at如果是 Windows 看看

http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv

To properly install the available wheels make sure you have pip version 8 installed.要正确安装可用的轮子,请确保安装了 pip 版本 8。

I tried to install OpenCV, and I couldn't find any suitable pip packages for it.我尝试安装OpenCV,但找不到适合它的pip软件包。 I decided to look online for official documentation on how to install it, and found this .我决定在网上查找有关如何安装它的官方文档,并找到 Unfortunately, not only does this documentation only give support for versions using python 2.7, it also says to install OpenCV manually by downloading it from sourceforge rather than using a package manager like pip.不幸的是,该文档不仅仅支持使用python 2.7的版本,还表示可以通过从sourceforge下载它来手动安装OpenCV,而不是使用像pip这样的软件包管理器。

I want to know if there's a better or more official way of installing OpenCV in python 3.5, or failing that, a package in pip I should install instead.我想知道是否有更好或更正式的方式在python 3.5中安装OpenCV,否则,我应该安装pip中的软件包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我无法在 Windows 10 64 位上使用带有 python 3.9.0 64 位的 pip 安装任何软件包 - I unable to install any package using pip with python 3.9.0 64-bit on Windows 10 64-bit Python PIP在Windows 7上针对64位安装的MS Visual Studio 2010 Express路径存在问题 - Python PIP has issues with path for MS Visual Studio 2010 Express for 64-bit install on Windows 7 当 Python 是 64 位时,为什么我不能在 Windows 上使用 pip 安装 angr-z3? - Why can't I install angr-z3 using pip on Windows when Python is 64-bit? 安装了包含Python 3.6但缺少pip3的Anaconda 4.3.1(64位),无法安装tensorflow - Installed Anaconda 4.3.1 (64-bit) which contains Python 3.6 but pip3 missing, cannot install tensorflow 为什么 64 位 `pip install MySQL-python` 指的是 `C:\\Program Files (x86)\\`? - Why 64-bit `pip install MySQL-python` refers to `C:\Program Files (x86)\`? 如何在Solaris上安装64位Python? - How to install 64-bit Python on Solaris? 无法在Visual Studio Virtual Env Python 3.5 64bit中使用PIP安装mysqlclient - Cannot install mysqlclient with PIP in Visual Studio Virtual Env Python 3.5 64bit Windows 64位和香草Python 3.5上的Theano - Theano on Windows 64-bit and vanilla Python 3.5 在Windows 10 64位中通过pycharm安装scipy软件包-python 3.5 - install scipy package via pycharm in windows 10 64 bit - python 3.5 如何为64位python 3安装64位vlc库? - How to install 64-bit vlc library for 64-bit python 3?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM