利用pip安装python版本的opencv
-
终极方法
pip install opencv-python-headless
-
opencv-python依赖模块
apt-get install libglib2.0-0 -y \
&& apt-get install libsm6 -y \
&& apt-get install libxrender-dev -y \
&& apt-get install libxext-dev -y
time yum install libSM-1.2.2-2.el7.x86_64 --setopt=protected_multilib=false -y
- 安装命令
pip uninstall opencv-python #卸载opencv
pip install opencv-python==3.4.0.12 #安装指定版本
pip install -U opencv-python #更新至最新版本
- 问题汇总
Q: 无法用pip安装opencv pip install opencv-python
Downloading/unpacking opencv-python
Could not find any downloads that satisfy the requirement opencv-python
A:对pip进行更新 pip install -U p