On linux/osx mayapy is just a shell script that bootstraps the process to start Maya's bundled python interpreter. This is basically a normal Python, but they can control what version they provide and ship an internal site-packages with it.
On Windows, I don't remember if it's a bat or exe.
You should be able to use Maya's python interpreter from standalone shell scripts outside Maya. But it's usually better to install external libraries into an external PYTHONPATH, and then just add that path to Maya using Maya.env or userSetup.py
Justin
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/65c90116-31c9-4d56-9d8d-ee4052fbc933%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You should be able to use Maya's python interpreter from standalone shell scripts outside Maya. But it's usually better to install external libraries into an external PYTHONPATH, and then just add that path to Maya using Maya.env or userSetup.py
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/3d806e3a-0d82-40d9-8b50-bb760edbd5c4%40googlegroups.com.
They are mostly the same, but you can’t run libraries compiled for one in the other, like PyQt.
Your pyhook may (I don’t know) be compiled, in which case you need to compile it for mayapy. For pure-Python libraries however, you can treat them the same.
To install pip
for mayapy
, simply run it with mayapy
$ mayapy get-pip.py
$ mayapy -m pip install pyhook