Maya 2022- pymel - how to import ?

Maya 2022- pymel - how to import ?

Bob.Bon2000
Collaborator Collaborator
24,899 Views
8 Replies
Message 1 of 9

Maya 2022- pymel - how to import ?

Bob.Bon2000
Collaborator
Collaborator

Hiay

 

All I get is >> `# Error: ModuleNotFoundError: file C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py line 142: No module named 'pymel'` 

 

How do we import the thing to maya?


TIA

24,900 Views
8 Replies
Replies (8)
Message 2 of 9

negow
Advocate
Advocate

PyMEL is an optional item when you install Maya 2022, you could run the installer again and tick the PyMEL box to install it.

Message 3 of 9

batarg
Advocate
Advocate

lets check if its really installed:

navigate to maya installation folder find folder bin select it and while holding down shift press rmb  to open modified context menu from there find and click "open in powerShell".

then just type mayapy and press [TAB] (it will expand like .\mayapy.exe) then continue typing " -m pip list":

 

 

 

PS <installed_path>Maya2022\bin> .\mayapy.exe -m pip list

 

 

and press enter

if you will get something like this

 

 

 

future 0.18.2
pip 20.2.2
PySide2 5.15.2
setuptools 41.2.0
shiboken2 5.15.2
shiboken2-generator 5.15.2

 

 

*(there is no pymel)

then you need to install it this way:

 

 

 

.\mayapy.exe -m pip install pymel

 

 

after installation is complete you can check it again:

 

you should get something similar:

 

future 0.18.2
pip 21.2.2
pymel 1.2.0
PySide2 5.15.2
setuptools 41.2.0
shiboken2 5.15.2
shiboken2-generator 5.15.2

 

pymel is now installed!

you're ready to go! no need to modify PATH environment variable

 

bonus:

if you receive message that new version of pip installer is available and if you wish to upgrade it use this cmd:

 

 

.\mayapy.exe -m pip install --upgrade pip

 

 

 

pip install its just convenient way to get python packages as easy as snap of the fingers :tanos_envy:

Message 4 of 9

Hans_Redman
Advocate
Advocate

Thanks man, it worked!

Message 5 of 9

francescoHVGX5
Participant
Participant

Thank you for this !! ... Why the hell does Maya 2024 does not install pymel by default ?! 

Message 6 of 9

Oleg.Gogolushko.2397
Community Visitor
Community Visitor

Thank you wery much!!! It works!!)

Message 7 of 9

tyler_thornock536PA
Community Visitor
Community Visitor

Finally, they removed pymel 😄 

0 Likes
Message 8 of 9

matpar_
Community Visitor
Community Visitor

awesome, that helped! thanks!

0 Likes
Message 9 of 9

719958768
Community Visitor
Community Visitor

没看懂?

0 Likes