In /usr/bin there is a python3 and python3.4. What is the difference? If I am setting up virtualenv for 3.4 do I need to point it to the 3.4 file, or does the python3 act like a meta package?

  • 1
    Try readlink /usr/bin/python3. – muru Nov 25 '14 at 1:00

/usr/bin/python, /usr/bin/python2 and /usr/bin/python3 are just symbolic links to a Python executable for convenient access to a Python 2/3 interpreter or just a python interpreter. In 14.04 they point to:

  • /usr/bin/python/usr/bin/python2.7
  • /usr/bin/python2/usr/bin/python2.7
  • /usr/bin/python3/usr/bin/python3.4

In combination with virtualenv you should use the executable directly: /usr/bin/python2.7 or /usr/bin/python3.4, but the symbolic links should work as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.