Wednesday, February 28, 2018

how to install python on ubuntu 12.04

  • download source code from www.python.org
platform: ubuntu 12.04
Python-2.7.3.tgz

./configure
make
sudo make altinstall

it's installed under directories below
/usr/local/bin/
/usr/bin/


on the terminal type "python"

yeniceri@ubuntu:~/Desktop/Python-2.7.3$ python
Python 2.7.3 (default, Aug 30 2012, 05:57:53)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

Use quit() or Ctrl-D (i.e. EOF) to exit


first hello world code, child is born


>>> print "holla el mundo"
holla el mundo

No comments:

Post a Comment