问题描述
我对此进行了很多搜索,我自己尝试了其中一些方法,但无法使用OpenCV.那么你们中的任何人都可以帮助我为python 3.5.1安装OpenCV吗?
I have searched quite a bit regarding this and I've tried some of these methods myself but I'm unable to work with OpenCV.So can anyone of you help me install OpenCV for python 3.5.1?
我在Windows中将Anaconda和Pycharm一起使用
I'm using anaconda along with Pycharm in windows
或者这是不可能的,我必须使用python 2.7吗?
Or is this not possible and i have to use python 2.7?
预先感谢
推荐答案
- 首先,您需要安装Microsoft Visual C ++ 2015 Redistributable,您可以从 https://www.microsoft.com/zh-cn/download/details.aspx?id=53587 .
-
然后您可以从以下位置下载轮盘文件 http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv .确保您下载的文件对应于您的python版本.例如:我的python版本是3.5,所以我下载了opencv_python-3.2.0 + contrib-cp 35 -cp35m-win_amd64.whl.
- First you need to install Microsoft Visual C++ 2015 Redistributable, which you can download from https://www.microsoft.com/en-us/download/details.aspx?id=53587.
Then you can download the wheel file fromhttp://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv.Make sure you download the file whichcorresponds to your python version. For example: my python versionis 3.5 so I downloadedopencv_python-3.2.0+contrib-cp35-cp35m-win_amd64.whl.
并使用"pip install文件名"进行安装.
And install it with "pip install filename".
这篇关于适用于Python 3.5.1的OpenCV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!