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

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

    On python 3.8, I resolved this by deleting the virtualenv directory (./venv in my case) and recreating using python's built-in venv module installed of the pip-installed virtualenv. I'm on arch linux and also first did sudo pacman -Syu. Python was originally installed using just sudo pacman -S python.

    $ rm -r ./venv
    $ python -m venv venv
    $ . ./venv/bin/activate
    $ python --version
    Python 3.8.1
    

提交回复
热议问题