问题

在使用腾讯coding的在线ide时候,尝试使用opencv进行机器学习,库是正常安装了,导入使用的时候报出了几个错误:

ImportError: libSM.so.6: cannot open shared object file: No such file or directory ImportError: libXrender.so.1: cannot open shared object file: No such file or directory ImportError: libXext.so.6: cannot open shared object file: No such file or directory

解决方法

apt-get install libsm6
apt-get install libxrender1
apt-get install libxext-dev