error while loading shared libraries: libpython3.6m.so.1.0的解决方式

root@iobigdata:~/development/flaskProject/flask-vue-cms# virtualenv venv
Using base prefix '/root/anaconda3'
New python executable in /root/development/flaskProject/flask-vue-cms/venv/bin/python
/root/development/flaskProject/flask-vue-cms/venv/bin/python: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory



解决方式:

说明没有找到libpython3.6m.so.1.0

第一步

使用 sudo find / -name libpython3.6m.so.1.0

然后复制到/usr/lib/便行

root@iobigdata:~/development/flaskProject/flask-cms# cp /opt/anaconda3/pkgs/python-3.6.0-0/lib/libpython3.6m.so.1.0 /usr/lib/
root@iobigdata:~/development/flaskProject/flask-cms# cp /opt/anaconda3/pkgs/python-3.6.0-0/lib/libpython3.6m.so /usr/lib/
libpython3.6m.so      libpython3.6m.so.1.0 
root@iobigdata:~/development/flaskProject/flask-cms# cp /opt/anaconda3/pkgs/python-3.6.0-0/lib/libpython3.6m.so /usr/lib/
root@iobigdata:~/development/flaskProject/flask-cms#
root@iobigdata:~/development/flaskProject/flask-cms# virtualenv venv
Using base prefix '/root/anaconda3'
New python executable in /root/development/flaskProject/flask-cms/venv/bin/python
Installing setuptools, pip, wheel...done.

--------------------------

倪芹雪一个游走在乡村小路上的卡哇伊。