Anyone have a working compile of numpy for Maya 2018/2019?
I've seen a lot of posts with this link, but it doesn't contain numpy: https://drive.google.com/drive/u/0/folders/0BwsYd1k8t0lEfjJqV21yTnd2elVhNXEyTXhHclhxbDhvWVF5WWZUeVFI...
Unless I'm missing something here?
Solved! Go to Solution.
I have the same problem.
Many references to a pre-compiled numpy version for Maya 2018, which supposedly works for 2019 as well, but the actual file is nowhere to be found.
Any verified ways to get numpy working in Maya 2019?
I believe I got numpy in Maya 2019 working now.
I followed the steps outlined below using the MSVC2015 64 bit compile of python 2.7.10. Installed pip, installed scipy (numpy was already installed in the python package). Copied the packages from python27/lib/site-packages into my Maya PYTHONPATH and done. Ready for action
Regarding the original question, then I found a Wheel file with the same name here:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy , following the guide here: https://blog.csdn.net/none123java321/article/details/77932224
However, I didn't manage to get it working with this method.
Never mind the above, it didn't work anyway - missing DLL's when trying to import scipy.optimize
However, I DID get both numpy and scipy working and tested now.
I did the following (Windows 10, 64bit, Maya 2019):
1) Download get-pip.py and place it in the same folder as Maya's mayapy.exe
2) Open a terminal with admin permissions and navigate to mayapy.exe (ie: C:\Program Files\Autodesk\Maya2019\bin)
3) Install pip:
mayapy.exe get-pip.py
4) Install wheel
mayapy.exe -m pip install wheel
5) Install Maya-compatible precompiled numpy and scipy wheels from https://pypi.anaconda.org/carlkl/
mayapy.exe -m pip install -i https://pypi.anaconda.org/carlkl/simple numpy
mayapy.exe -m pip install -i https://pypi.anaconda.org/carlkl/simple scipy
That should be it.
I'm trying to do this for Maya 2020. I am not sure where to locate get-pip.py. The only one I can find throws errors when being run as described above, and from what I can tell, it's not compatible with python 2.7, so I don't understand how this ever worked.
Edit: okay, I found a version which worked (https://bootstrap.pypa.io/3.2/get-pip.py)
Also step 4 threw a bunch of errors but turned out not to be necessary. Thanks!
Here were steps the helped me install numpy and scipy in Maya 2020 Mac:
./mayapy get-pip.py
./mayapy -m pip install numpy
./mayapy -m pip install scipy
Hope that helps!
Just an Update. as things have changed [A lot] Maya 2022
mayapy.exe -m pip install --upgrade pip
ERROR: Invalid requirement: 'wheel\u200b'
An Alternative is :
pip install --upgrade setuptools pip wheel
mayapy.exe -m pip install numpy
mayapy.exe -m pip install scipy
Cheers,
Hossam
Can't find what you're looking for? Ask the community or share your knowledge.