opencv-python和opencv-contrib-python冲突
1. pip - Python 2.x
strong@foreverstrong:~$ pip list | grep opencv
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
opencv-python 3.4.1.15
strong@foreverstrong:~$
2. pip3 - Python 3.x
strong@foreverstrong:~$ pip3 list | grep opencv
opencv-contrib-python (3.3.0.10)
opencv-python (3.4.0.12)
strong@foreverstrong:~$
3. 卸载 opencv-contrib-python
sudo pip3 uninstall opencv-contrib-python==3.3.0.10
4. 卸载 opencv-python
sudo pip3 uninstall opencv-python==3.4.0.12
5. pip3 list | grep opencv
strong@foreverstrong:~$ pip3 list | grep opencv
strong@foreverstrong:~$