Python “No such file or directory” after fresh Ubuntu 16 install

By Niel

I did a fresh install of Ubuntu 16 LTS, but keeping a dump of the packages I had installed previously, and reinstalling them, using the answers to this question: How to backup settings and list of installed packages.

After running updates again, I tried to use python, and got this error:

/home/niel/.pyenv/libexec/pyenv-exec: line 47:
/home/niel/.pyenv/versions/3.4.0/bin/python: No such file or directory

I checked manually and /home/niel/.pyenv/versions/3.4.0/bin/python does exist.

But running /home/niel/.pyenv/versions/3.4.0/bin/python3.4 --version gives me the same error.

bash: /home/niel/.pyenv/versions/3.4.0/bin/python3.4: No such file or directory

What’s wrong here? Could the paths be broken?

Source:: http://askubuntu.com/questions/870564/python-no-such-file-or-directory-after-fresh-ubuntu-16-install


Leave a Reply