ubuntu18安装python3-pip opencv-python

root@2fce31d9be57:/# apt-get install python3-dev aptitude python3-pip
root@2fce31d9be57:/# pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)



root@2fce31d9be57:/# apt-get install libsm6 libxrender1 libxext6 opencv-python
root@2fce31d9be57:/# python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> 

你可能感兴趣的:(Linux)