2

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:

vonvonvon
  • 21
  • 1
  • 1
  • 2

1 Answers1

7

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:

python

And to open python3, just run:

python3

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

which python

And to find the location of the python3 binary:

which python3