Friday, 23 August 2013

Change Python version in Maya

Change Python version in Maya

I'm trying to change the version of python within maya. Specifically, I
want maya (maya 2013) script editor to use python2.7 and all other
packages/modules attached to that version. I also want to be able to
import pymel and maya from eclipse.
I've tried following this response but no luck. Maya still points to its
default version.
From python, i try to import pymel with
import pymel.core as pm
and I get an error that reads
File "", line 1, in File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pymel/core/init.py",
line 6, in import pymel.versions as _versions File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pymel/versions.py",
line 12, in from maya.OpenMaya import MGlobal as _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.

No comments:

Post a Comment