Im using 13.04 but I want have installed the both main Python versions for make tests about migration of my actual code.
is possible install Python 3 in the same machine running Python 2.7? I need work with both versions,thanks!
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityYes, you just need to install python3
package.
$ sudo apt-get install python3
Python 2.X will still be the default Python used, so if you want to run a script with Python 3.X you need to run
$ python3 /path/to/script.py
or add in the first line of your executable script:
#!/usr/bin/env python3
apt-get
, Software Center) you will have no problem at all. But if you install from source, depending on where it ends installed and if it replaces the default python installation you can have some problems.