在virtualenv环境中安装opencv遇到报错

在virtualenv环境中下载opencv–python3.4.1.15时出现报错

img

你好,在虚拟环境中安装opencv-python最稳定的安装则使用离线下载whl包后进行安装
下载地址:https://pypi.tuna.tsinghua.edu.cn/simple/opencv-python/
使用如下命令在虚拟环境中安装即可

pip install opencv_python-3.4.1.15-cp36-cp36m-win_amd64.whl

请采纳,谢谢~

建议你用anaconda, https://www.anaconda.com/
或者

fish@fish-bgs-pc:~$ pip install --upgrade pip # 更新必须,否则会报错

Desktop版本:
fish@fish-bgs-pc:~$ pip install opencv-contrib-python

Server版本:
fish@fish-bgs-pc:~$ pip install opencv-contrib-python-headless

[点击并拖拽以移动]