Change Python version in Maya -


i'm trying change version of python within maya. specifically, want maya (maya 2013) script editor use python2.7 , other packages/modules attached version. want able import pymel , maya eclipse.

i've tried following response no luck. maya still points default version.

from python, try import pymel

import pymel.core pm 

and error reads

file "<stdin>", line 1, in <module>   file  "/opt/local/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/pymel/core/__init__.py",  line 6, in <module>     import pymel.versions _versions   file "/opt/local/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/pymel/versions.py",  line 12, in <module>     maya.openmaya import mglobal  _mglobal importerror: bad magic number in /opt/local/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/maya/openmaya.pyc 

thanks in advance.

the method described in link work, have point python to maya's python's dlls , site-packages folder via global pythonpath variable. changed 2.7 , imported pymel setting following.

pythonpath=$pythonpath;c:\program files\autodesk\maya2013\python\dlls;c:\program files\autodesk\maya2013\python\lib\site-packages 

just tailor linux or mac, whichever, , should trick. not needed except assigning pythonhome var version of python want use.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -