Python - Loading Python Libraries like numpy, (latest Maya Version and Python 3+)

Python - Loading Python Libraries like numpy, (latest Maya Version and Python 3+)

al-najjar.ammar
Community Visitor Community Visitor
393 Views
1 Reply
Message 1 of 2

Python - Loading Python Libraries like numpy, (latest Maya Version and Python 3+)

al-najjar.ammar
Community Visitor
Community Visitor

can't load Python Libraries like numpy, with (latest Maya Version and Python)

in the Maya script.

 

any help appreciated.

0 Likes
394 Views
1 Reply
Reply (1)
Message 2 of 2

Kahylan
Advisor
Advisor

Hi!

 

You need to install numpy separately using pip.

 

"C:\Program Files\Autodesk\Maya2022\bin\mayapy.exe" -m pip install --user numpy

 

You probably did this for python 2 a long time ago, but not yet for python 3. Honestly I also had forgotten that I needed to separately install numpy when I switched to Maya 2022.^^

 

I hope this helps!

0 Likes