raj asked this 3 years ago

python installed but commands not working

I have python3.5 installed. When I try to do 

apt install python3

It says

python3 is already the newest version(3.5.1-3)

But when I run

python --version 

It says

python is not installed, run apt install python3

When I navigate to /usr/bin/  I can see all the python3.5 files. What is wrong?


Remy Pereira 3 years ago

There should be a symlink /usr/bin/python to the actual /usr/bin/python3 executable. Check if thee symlink exists.

ls -l /usr/bin/python