I'm really noob at Ubuntu and I really need Phython 2.7 and PIP next week on our training.

The instruction are to: -Install Ubuntu -Install Python -Install - python2.7-dev - python-dev -And PIP

So I tried to install some stuff and research stuff. Like installing Python 2.7.13 and fiddle with the terminal and stuff.

The problem is. I don't know where to open the Python that I have installed or to install the next thing PIP.

How do I install the latest Python 2.7.X or 3.X on Ubuntu? - Here are the steps that I have followed.

If you have time, please do a step-by-step and explain it to me so I can understand. What I'm doing. Really lost right now. D:

  • -Anyone- on Ubuntu has python 2.7 installed. Type which python on command line. And type python to enter command line. Otherwise use an editor. And the dev and pip: sudo apt-get install with the package name to install these. Your task to find the package names (hint: start with the names you typed ;-) )
    – Rinzwind
    Apr 12, 2017 at 14:38
  • sudo apt-get install python2.7-dev sudo apt-get install python-dev sudo apt-get install pip Like that or not?
    – vonvonvon
    Apr 12, 2017 at 15:11

1 Answer 1


Both Python 2 and 3 come pre-installed with Ubuntu by default. There is no need to compile from source.

To open python2, just run:


And to open python3, just run:


To find the location of the python2 binary, just run:

which python

And to find the location of the python3 binary:

which python3
  • do I need to run it from terminal?
    – vonvonvon
    Apr 12, 2017 at 14:39
  • I really apologize if I don't know anything.
    – vonvonvon
    Apr 12, 2017 at 14:40
  • @vonvonvon - Running from the terminal as opposed to what? Apr 12, 2017 at 14:40
  • so the terminal has this ">>>" thingy? Is that the python?
    – vonvonvon
    Apr 12, 2017 at 14:50
  • 1
    @vonvonvon if you want an integrated development environment (IDE) for python, you can install idle (or idle3 for python3). Otherwise, you can use any plain text editor to write your code, and then run it in the terminal. Apr 12, 2017 at 15:06

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.