pip install opencv-python
出现警告:
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
解决方法:
在前面加一个sudo
sudo pip install opencv-python