Running two python versions in 12.04

Marius Gedminas marius at pov.lt
Wed Mar 12 09:40:46 UTC 2014


On Tue, Mar 11, 2014 at 09:20:57PM -0500, Jim Byrnes wrote:
> I would like to add Python 3.3 to my 12.04 installation.  I am
> thinking of using the  deadsnakes PPA to do the installation.  If i
> do that am I correct in thinking:
> 
> There will be no conflicts - the system will still use Python 2.7.3?

Correct.

> To run a Python 2 program I would type python program_name.py or put
> just python in the shebang line?

Correct.

> To run a Python 3 program I would type python3 program_name.py or
> put python3 in the shebang line?

Correct.

> It would be great if someone who has done this can tell me if I am
> correct or not.

FWIW if you're fine with Python 3.2, it's available in the main 12.04
repo, no need for PPAs.

Marius Gedminas
-- 
I used to think I was indecisive, but now I'm not so sure.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20140312/056dcc5d/attachment.sig>


More information about the ubuntu-users mailing list