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

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

    Another way is adding LDFLAGS="-Wl,-rpath /usr/local/lib" in configure, for example

    ./configure --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
    

    /usr/local/lib is the path where libpython3.*.so files are in

提交回复
热议问题