lakers009 发表于 2017-4-21 13:10:03

python运行错误

  python安装过程,我通常都是使用下面的命令:
./configure --enable-shared && make && make install
  使用--enable-shared参数是为了一些依赖它的软件可以成功安装,比如ganglia。
  今天成功安装了python2.7.2,但是运行报如下错误:
  python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
  解决方法如下:
  vi /etc/ld.so.conf.d/python2.7.conf
  敲入后面内容:/usr/local/lib
  保存后,运行:
  ldconfig
  再次运行python命令,就OK了
页: [1]
查看完整版本: python运行错误