PDA

View Full Version : [ubuntu] Python Interpreter Installation



Dante1217
January 26th, 2010, 08:23 AM
So, ubuntu 9.10 comes with v2.6 installed.. so it says, but i cant find it anywhere :x

im experienced with the python language, i am not however experienced enough with linux to find the Python interpreter :/

sorry fpr such a nooby question

lukeiamyourfather
January 26th, 2010, 08:30 AM
Its installed by default. Open a terminal and type in "python" which will open the interactive interpreter. Or use "python /scripts/whatever.py" to run a script. If you need Python 3.1 you can install it with "sudo apt-get install python3" and then access it in the terminal with "python3", note that both versions can exist side by side and the default Python 2.6 is required by the system so don't remove it. Cheers!

Dante1217
January 26th, 2010, 10:16 AM
terminal outputs:


in:
python

ret:

Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.