ubantu下出现no module named cv2,使用pip install opencv-python后出现warning警告

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
ubantu下出现no module named cv2,使用pip install opencv-python后出现warning警告_第1张图片

 

解决方法:

在前面加一个sudo

sudo pip install opencv-python

你可能感兴趣的:(python,python)