Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Numpy 2018/2019?

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
Anonymous
8928 Views, 8 Replies

Numpy 2018/2019?

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?

8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: Anonymous

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?

Message 3 of 9
Anonymous
in reply to: Anonymous

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

 

https://forums.autodesk.com/t5/maya-programming/guide-how-to-install-numpy-scipy-in-maya-windows-64-...

 

 

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.

 

Message 4 of 9
Anonymous
in reply to: Anonymous

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. 

 

Message 5 of 9
Anonymous
in reply to: Anonymous

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!

 

Message 6 of 9
martinezalonsoAD2X6
in reply to: Anonymous

Here were steps the helped me install numpy and scipy in Maya 2020 Mac:

 

  1. Download the get-pip.py file:
    A)   https://bootstrap.pypa.io/pip/2.7/get-pip.py
  2. Save the file in your desktop as "get-pip.py"
  3. Open a terminal
    1. run the following commands: (this will ask you for your password) (if not using maya 2020, change first line to your maya version)
      cd /Applications/Autodesk/maya2020/Maya.app/Contents/bin/
      sudo cp ~/Desktop/get-pip.py .

      ./mayapy get-pip.py

      ./mayapy -m pip install numpy

      ./mayapy -m pip install scipy

       

  4. ENJOY!

Hope that helps!

Tags (4)
Message 7 of 9

It's perfectly correct answer for me. Thank you guy. 🙂
Message 8 of 9
hossam.fawzy
in reply to: Anonymous

Just an Update. as things have changed [A lot] Maya 2022

 

  • You can just install pip without the need to download any scripts

 

 

mayapy.exe -m pip install --upgrade pip

 

 

 

 

  • If you tried  "mayapy.exe -m pip install wheel​" You will see this unwelcomed guest

ERROR: Invalid requirement: 'wheel\u200b'

 

An Alternative is :

 

 

pip install --upgrade setuptools pip wheel

 

 

 

 

 

  • numpy now can be directly installed with pip

 

 

mayapy.exe -m pip install numpy

 

 



 

  • The same goes for scipy

 

 

mayapy.exe -m pip install scipy

 

 

 

Cheers,

Hossam

Message 9 of 9
jchampTBPRE
in reply to: hossam.fawzy

You nailed it, was going crazy trying every other method. Thanks.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report