python3.5open cv的安装

open cv 下载网址:http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv 

opencv_python‑3.3.1‑cp35‑cp35m‑win_amd64.whl,这个名字标识了三部分:cp35,cp35m和win_amd64。cp35表示Python是3.5版本,win_amd64是表示安装的Python是64bit的。 

pip install 文件路径\opencv_python‑3.2.0‑cp35‑cp35m‑win_amd64.whl 
比如我将其放在c盘中,则使用: 
pip install c:\opencv_python‑3.2.0‑cp35‑cp35m‑win_amd64.whl

万一出现错误:opencv_python‑3.3.1‑cp35‑cp35m‑win_amd64.whl is not a supported wheel on this platform. 

在cmd或python集成环境中查询支持的版本:

python>>>import pip; 

>>> print(pip.pep425tags.get_supported())

返回结果:

[(‘cp35’, ‘none’, ‘win_amd64’), (‘py3’, ‘none’, ‘win_amd64’), (‘cp35’, ‘none’, ‘any’), (‘cp3’, ‘none’, ‘any’), (‘py35’, ‘none’, ‘any’), (‘py3’, ‘none’, ‘any’), (‘py34’, ‘none’, ‘any’), (‘py33’, ‘none’, ‘any’), (‘py32’, ‘none’, ‘any’), (‘py31’, ‘none’, ‘any’), (‘py30’, ‘none’, ‘any’)]

3. 测试opencv的确安装成功

python
>>> import cv2
>>> lena = cv2.imread("d:\lena.jpg")  ##找一个放了照片的路径
>>> cv2.imshow("Image",lena)    
>>> cv2.waitKey(0)
针对自己:安装文件目录:F:\AI总文件。


你可能感兴趣的:(python3.5open cv的安装)