Skip to content

部分部署报错的解决方案

alisen edited this page May 7, 2020 · 2 revisions

Ubuntu部署

  • ImportError: libSM.so.6: cannot open shared object file: No such file or directory
apt-get install libsm6
  • ImportError: libXrender.so.1: cannot open shared object file: No such file or directory
apt-get install libxrender1
  • ImportError: libXext.so.6: cannot open shared object file: No such file or directory
apt-get install libxext-dev

Centos部署

  • ImportError: libSM.so.6: cannot open shared object file: No such file or directory
    在Centos上如果出现上面的报错,可通过yum whatprovides查找依赖的包名,然后安装。
    例如:yum whatprovides libSM.so.6

  • 如果安装了相关依赖后仍然报上面相同的错误
    通过安装python-qt4可以解决

sudo yum install python-qt4
Clone this wiki locally