•  
  • Helping you upgrade your CG career

    Which version of Python comes with Maya 2012 ?

    0
    votes
    And if you know about other Maya versions especially 2011 and 2013, it'd be great if you include in your answer, the corresponding python versions for those as well ... thanks
    asked 4 Years ago by
    Avatar image of CG Helpline user kris_smith

    Sydney, Australia
    CGH Score : 21
    Last edited by kris_smith
    on 2012-09-26 11:48:56
    0 Comments :
    Add a Comment for this question
    Please Login or Register to add comment
    3 Answers :
    0
    votes

    Python was added as an alternative scripting language for Maya since Maya 8.5. As of today, all these 3 maya versions - 11,12,13 comes bundled with Python version 2.6.4

    • Maya 2011 => Python 2.6.4
    • Maya 2012 => Python 2.6.4
    • Maya 2013 => Python 2.6.4
    answered 4 Years ago by
    Avatar image of CG Helpline user TechAnimator

    Canada
    CGH Score : 50
    Expertise : Maya;
    0 Comments :
    Add a Comment for this answer
    Please Login or Register to add comment
    1
    votes

    A quick and easy way to find which python version is to open a new Python tab in the Maya script editor, and then type :

    import sys
    py_version=sys.version
    print py_version

    This should print the your python version , example : 2.6.4 (r264:75706, Apr 14 2010, 12:23:05) [MSC v.1500 64 bit (AMD64)]

    You can also use this :

    import sys
    print sys.version_info

    Which will print the python version in this format :

    (2, 6, 4, 'final', 0)

    answered 4 Years ago by
    Avatar image of CG Helpline user KanoKan

    Denmark
    CGH Score : 212
    Expertise : Maya; Lighting; PyMel;
    0 Comments :
    Add a Comment for this answer
    Please Login or Register to add comment
    0
    votes

    Updating the list of Maya versions and corresponding python versions :

    • Maya 2014 == Python 2.7.3
    • Maya 2015 == Python 2.7.3

    sys.version_info includes major,minor and micro version details, and can be used as such :

    import sys
    sys.version_info.major
    sys.version_info.minor
    sys.version_info.micro
    sys.version_info.releaselevel

    sys.version returns you the python version as a string.

    example, on my pc(win7) :

    sys.version on Maya2011 prints # Result: '2.6.4 (r264:75708, Oct 26 2009, 07:36:50) [MSC v.1500 64 bit (AMD64)]' #

    sys.version on Maya2014 prints # Result: 2.7.3 (default, Aug 1 2012, 16:33:56) [MSC v.1600 64 bit (AMD64)] #

    • sys.prefix gives you the path to python interpreter
    • sys.executable gives you the python executable. On my pc (win7) sys.executable prints
    # Result: C:\Program Files\Autodesk\Maya2014\bin\maya.exe #

    Hope that helps

    answered 2 Years ago by
    Avatar image of CG Helpline user aaachooo

    Cambridge, United Kingdom
    CGH Score : 142
    Expertise : Maya; Python; Maxscript;
    0 Comments :
    Add a Comment for this answer
    Please Login or Register to add comment

    Submit your Answer :




    SUBMIT

    Page rendered in 0.1271 seconds. Memory usage : 4.02MB.