New answers tagged


To install or update python just type this in Terminal: sudo apt-get install python That's it :)


Ubuntu comes with 2.7 and 3.4, and 2.7 is technically default, with /usr/bin/python being a symlink to /usr/bin/python2.7 skolodya@ubuntu:$ python python python2 python3 python3.4m python/ python2.7 python3.4 python3m skolodya@ubuntu:$ ls -l $(which python) lrwxrwxrwx 1 root root 9 Aug 15 00:39 ...


Ubuntu 14.04 comes with both Python 2.7 and 3.4 installed by default, but not with any Python IDEs. For starters, install IDLE for both versions: sudo apt-get install idle idle3 The icons for both will show up in the Dash, and when you run them, you right click on the icons to lock them to the launcher. If you don't mind using a terminal, run python2 and ...


cat > /usr/local/bin/py #!/usr/bin/dash python3 "$@" <CTRL-D> (provided you have write permission to /usr/local/bin) likewise cat > /usr/local/bin/pyi #!/usr/bin/dash python3 -i "$@" <CTRL-D> then you only type py (and use py in #! lines) for your chosen python.

Top 50 recent answers are included