Running two python versions in 12.04
Jim Byrnes
jf_byrnes at comcast.net
Wed Mar 12 13:43:26 UTC 2014
On 03/12/2014 04:40 AM, Marius Gedminas wrote:
> 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
>
>
>
Thank you Marius for confirming my understanding. As to 3.2, when I was
reading about trying Python 3 the opinion seemed to be to go with 3.3 if
you were going to use the 3 version.
Regards, Jim
More information about the ubuntu-users
mailing list