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

后端 未结 9 1596
别那么骄傲
别那么骄傲 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:33

    export LD_LIBRARY_PATH=[your python path to libpython3.4m.so]

    libpython3.4m.so is under your python source from which you built it.

    Put it in your .bashrc to set it at login automatically.

    I can't force virtualenv to 3.4 on my machine but you can see that under lib of your virtualenv there's just a bunch of symlink to your local python installation. I guess libpython3.4m.so is fetch by one of those.

提交回复
热议问题