- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm not too familiar with python past the basics but I've got a bunch of python 2.7 scripts I'd like be able to use with Maya 2022. I've tried both methods listed in the docs for running maya in python 2 mode, first by launching maya via command line with '-pythonver 2'. In this case maya fails to launch, I see the slash screen for a moment and then it crashes. Using the other method of setting an environment variable 'MAYA_PYTHON_VERSION=2', Maya launches fine but I'm not sure how tell if it worked. In maya 2020 running the following returns the python version:
import sys
ver=sys.version
print(ver)
In Maya 2022 it doesn't return anything, in fact even just print('hello') doesn't print anything. I'm not sure how else to tell what version other than trying to run an old script. The few I've tried (all of which work 2020) return errors so I assume I'm still in python 3 mode.
Solved! Go to Solution.