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
  • -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 '17 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 '17 at 15:11

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
You'reAGitForNotUsingGit
  • 14,669
  • 9
  • 48
  • 83