uwsgi部署web,error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
2017-11-02 16:02
1071 查看
使用的是miniconda2安装的python,并且加入了环境变量,可是uwsgi部署web时候仍然报错error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
可以在环境变量中添加 export LD_LIBRARY_PATH="/root/miniconda2/lib" ,这里的/roo/miniconda2是指我的python安装路径 也可以使用find / -name libpython2.7.so.1.0找到这个路径。 如果是使用supervisor部署的,在程序的配置文件设置environment =LD_LIBRARY_PATH="/root/miniconda2/lib/",这样就能解决了找不到这个文件。
相关文章推荐
- python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
- python3.5: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory
- mkubimage-mlc2: error while loading shared libraries: liblzo2.so.2: cannot open shared object file: No such file or directory
- error while loading shared libraries: libtest.so: cannot open shared object file: No such file or directory
- ./ProjectC: error while loading shared libraries: libProjectC.so: cannot open shared object file: No such file or directory
- sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory
- error while loading shared libraries: lib******: cannot open shared object file: No such file or directory
- nginx启动报错:/usr/local/nginx/sbin/nginx: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file or directory .
- 报错:/application/zabbix/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
- 共享库问题[gtest] _error while loading shared libraries: libgtest.so.0: cannot open shared object file: No such file or directory
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file or d
- error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory
- error while loading shared libraries: lib*.so: cannot open shared object file: No such file or direc
- error while loading shared libraries: libevent-1.3.so.1:cannot open shared object file :No such file or directory解决方法
- memcached安装报错 error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory解决
- error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file or d
- Atlas系列一:【已解决】error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory
- [RK_2014_0920]ubuntu下,使用ldconfig解决:error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory