Skip to content

/usr/bin/env: ‘python’: No such file or directory

  • by

What is going on when you get an error like: /usr/bin/env: ‘python’: No such file or directory

Well, you seem to have python3 installed, but it isn’t called python in your environment variables. And the script, or program you want to run requires python 2.

So one way to fix this is to install the package python-is-python3 with this command:
sudo apt-get install python-is-python3

Or you could just make a python3 link in your environment variables to python

sudo ln -s /usr/bin/python3 /usr/bin/python

If you found another way to fix this, or this doesn’t work. Please let me know in the comments.

Leave a Reply

Your email address will not be published. Required fields are marked *