python: error while loading shared libraries: libpython3.4m.so.1.0: cannot open shared object file: No such file or directory

后端 未结 9 1570
别那么骄傲
别那么骄傲 2021-02-02 07:36

I have created a python virtual environment using virtualenv, after activating it, I can see where is Python installed in my shell as following:



        
9条回答
  •  一向
    一向 (楼主)
    2021-02-02 08:24

    For me, libpython3.6m.so.1.0 was in the folder where I downloaded Python source (~/Python3.6.9).

    I simply did : sudo cp ~/Python3.6.9/libpython3.6m.so.1.0 /usr/local/lib/python3.6/

    and : export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/python3.6

提交回复
热议问题