Upgrading Python?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Upgrading Python?

Postby Nikolai on Wed Feb 13, 2013 6:04 pm

I note that the version of Python packaged with Maya is 2.7.3. I'd like to upgrade to 3.3.0, either alongside or instead of. How should I go about doing that so that Geany can find it?

Thanks for your input. I'm really looking forward to learning more about Linux.
Nikolai
Level 1
Level 1
 
Posts: 2
Joined: Thu Dec 08, 2011 3:11 pm

Linux Mint is funded by ads and donations.
 

Re: Upgrading Python?

Postby xenopeek on Wed Feb 13, 2013 6:16 pm

First, do not mess with the installed Python versions or try to change which Python version is the default interpreter. That will break your system, as core programs of your operating system depend on the certain versions of Python being installed and being the default interpreter. Python 2 isn't compatible with Python 3 in most cases, and even from Python 3.2 to Python 3.3 things can break (another user had that problem recently).

Maya doesn't have Python 3.3. You can add Python 3.2 to your system though, installed alongside Python 2 without causing problems. To do so, install the package libpython3.2 and that will pull in the other needed packages automatically.

Then start any script your want to use Python 3 with:
Code: Select all
#!/usr/bin/env python3

Or for specifically Python 3.2:
Code: Select all
#!/usr/bin/env python3.2
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14517
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Upgrading Python?

Postby Nikolai on Wed Feb 13, 2013 6:53 pm

Many thanks.

I see they're already starting on alpha-releasing 3.4.x. You wouldn't happen to have enough of an inside track to know what's going on there, would you?
Nikolai
Level 1
Level 1
 
Posts: 2
Joined: Thu Dec 08, 2011 3:11 pm

Re: Upgrading Python?

Postby xenopeek on Thu Feb 14, 2013 3:30 am

Nope :) I just know from experience here, and from using Python 3 without problems myself, what you can and can not do with mixing multiple Python versions.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14517
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands


Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], Google Adsense [Bot], Mute Ant, Royal-Mint and 26 guests