2

Using Ubuntu 16.04, I have a problem with python3

$ python --version
Python 2.7.12

$ sudo apt-get install python3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3 is already the newest version (3.5.1-3).
The following packages were automatically installed and are no longer 
required:
  linux-headers-4.8.0-53 linux-headers-4.8.0-53-generic
  linux-image-4.8.0-53-generic linux-image-extra-4.8.0-53-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

$ python3
bash: /usr/lib/command-not-found: /usr/bin/python3: bad interpreter: No such file or directory
9
  • 1
    python calls python2 , to call python 3 use python3
    – Panther
    Jun 30, 2017 at 18:24
  • 2
    Please edit your question to include the outputs of type python3 and readlink -f /usr/bin/python3 Jun 30, 2017 at 18:28
  • 6
    Probably a broken system link sudo ln -s /usr/bin/python3.4 /usr/bin/python3 or similar locate your python 3 binary and link it.
    – Panther
    Jun 30, 2017 at 18:30
  • 1
    @RoaaSolh if you have a new problem, start a new question Jun 30, 2017 at 20:52
  • 2
    no man this is not duplicate as how you can do alisasing as none of the python version are working....
    – Aman Gupta
    Apr 19, 2019 at 10:57

0

Browse other questions tagged or ask your own question.