Does the 2022 version remove python numpy?

Does the 2022 version remove python numpy?

g2m.agent
Collaborator Collaborator
4,462 Views
3 Replies
Message 1 of 4

Does the 2022 version remove python numpy?

g2m.agent
Collaborator
Collaborator

maya 2020.4

 

 

import numpy
numpy.array([1,2,3])
# Result: array([1, 2, 3]) # 

 

 

 

maya 2022

 

 

import numpy
# Error: ModuleNotFoundError: file C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py line 142: No module named 'numpy' # 

 

 

 

 

 

0 Likes
Accepted solutions (1)
4,463 Views
3 Replies
Replies (3)
Message 2 of 4

zewt
Collaborator
Collaborator
Accepted solution

numpy has never been included with Maya.  It's probably in from your global Python site packages, and you've only installed it for Python 2 and not Python 3, so you should be able to install it with

 

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

 

Message 3 of 4

lewisjin
Observer
Observer

I can not install maya2022. on Ubuntu21.10, it was error like SSL:

 

mayapy -m pip install --user numpy --trusted-host pypi.tuna.tsinghua.edu.cn 1 ↵
Looking in indexes: http://pypi.tuna.tsinghua.edu.cn/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/numpy/

 

I have installed libssl.so.10 already, the file exist.

 

but just can not be load

0 Likes
Message 4 of 4

tiago.beijoco
Community Visitor
Community Visitor

not sure if related but check your license server. Just tried on centos7 and it worked.

0 Likes