ubuntu anconda环境中python3.7安装cv2及出现错误的解决办法
安装cv2
pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
ImportError: libSM.so.6: cannot open shared object file: No such file or directory
退出虚拟环境,在ubuntu下使用命令
i686是32位系统我们的是64位系统所以用x86_64
yum whatprovides libSM.so.6
yum install libSM-1.2.2-2.el7.x86_64 --setopt=protected_multilib=false
ImportError: libXrender.so.1: cannot open shared object file: No such file or directory
yum whatprovides libXrender.so.1
yum install libXrender-0.9.10-1.el7.x86_64 --setopt=protected_multilib=false
ImportError: libXext.so.6: cannot open shared object file: No such file or directory
yum whatprovides libXext.so.6
yum install libXext-1.3.3-3.el7.x86_64 --setopt=protected_multilib=false
至此能够完美运行