Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Installing pip on Mayapy

Installing pip on Mayapy

ltamburelliMDUMN
Explorer Explorer
2,261 Views
1 Reply
Message 1 of 2

Installing pip on Mayapy

ltamburelliMDUMN
Explorer
Explorer

Currently having a small issue with downloading/installing pip on Mayapy on a Mac. I cannot seem to find a way to do it. I have tried installing it the same way you would with python, as well as in the way it's shown in Autodesk Mayas website, however neither of these ways have worked out for me. and all I get in return is an invalid syntax error.

 

Here's where the website demonstrates how to do it:

 

https://help.autodesk.com/view/MAYAUL/2022/ENU/?guid=GUID-72A245EC-CDB4-46AB-BEE0-4BBBF9791627

 

Does anyone know how I can install pip and not get this syntax error?

0 Likes
2,262 Views
1 Reply
Reply (1)
Message 2 of 2

tkaap2
Autodesk
Autodesk

I think that Maya 2022's mayapy (and mayapy2 for python2) already have pip installed.  So you shouldn't need to install it yourself.


If that isn't the case.  The link you provided shows how to use pip to install other modules.

 

This link shows how to install pip itself into python installations that don't already have it.
https://pip.pypa.io/en/stable/installation/

 

Where these instructions call python, you should substitute mayapy .  If ensurepip is already present, you can use that.  If not, you may need to download the get-pip.py script and call mayapy get-pip.py .

 

If none of that helps, please post the commands you are trying.  

0 Likes