The command python is not found.
This is where python3 is installed.
~ which python3
/usr/bin/python3
How do I get the command python to mean python3?
The command python is not found.
This is where python3 is installed.
~ which python3
/usr/bin/python3
How do I get the command python to mean python3?
You can add an alias in your shell.
NOTE: be careful with this, though, because if you're using a virtual environment, it doesn't always play nice with aliases you've defined outside the environment.
For example, if you use bash, you can add the following line to your ~/.bashrc file:
alias python=python3
You can either create an alias in your shell or symlink the python3 binary to python. Symlinking is easier and will work no matter which shell or virtual environment you are using. Just run this command:
ln -s $(which python3) /usr/local/bin/python