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

Python in 3dsMax 2020 - numpy

6 REPLIES 6
Reply
Message 1 of 7
mateusz.zelent
2638 Views, 6 Replies

Python in 3dsMax 2020 - numpy

Hi, I'm trying to install numpy in 3dsMax2020, but I have problem with dll's. Do you know any solution on how to install correctly numpy? 

 

The previous solution from version 2017 and 2018 doesn't work anymore. 

 

https://help.autodesk.com/view/3DSMAX/2017/ENU/?guid=__developer_python_extension_libraries_html

6 REPLIES 6
Message 2 of 7
it
Participant
in reply to: mateusz.zelent

Yes I'm running into the same problem. The pages https://help.autodesk.com/view/3DSMAX/2020/ENU/?guid=__developer_python_extension_libraries_html  show the same procedure, however get-pip.py fails with a bunch of error messages. I tried to understand what's causing the issue, but didn't get very far. Wondering if there's a solution?


 

Message 3 of 7

the easiest solution is to install scipy (it's coming with numpy) anywhere, and copy their all directories to  \Autodesk\3ds Max <version>\python\Lib\site-packages manually. 

This is exactly what i did when I got tired of struggling with a 'straight forward installation' into 3DS MAX system

 

Message 4 of 7
it
Participant
in reply to: it

Pip is already present on the system, in "C:\Program Files\Autodesk\3ds Max 2020\python\Scripts" Calling it from an elevated command prompt installed numpy, however the module still fails (installing numpy-1.16.5-cp27-cp27m-win_amd64.whl) with

ImportError: cannot import name _distributor_init

perhaps other modules are more successful. 

Tags (3)
Message 5 of 7
it
Participant
in reply to: denisT.MaxDoctor

 denisT.MaxDoctor do you have a link to the correct version please? Much appreciated!

 

regards,

Wolfgang

Message 6 of 7
denisT.MaxDoctor
in reply to: it

Here is the list of scipy releases . Find  the most recent version for current version of Python for your MAX.

you can double-check the Python version from max:

import sys
sys.version_info[:2]

as i said above the scipy is coming with numpy. install both, but copy to max system only numpy if you don't need scipy

 

PS. 

I have repeatedly encountered some confusion with the python and pip versions in both MAX and Maya different versions. I don’t have time to deal with this every time, so I prefer to install all additional packages manually.

In any case, I must be sure that my clients and I use the same versions.

Message 7 of 7
it
Participant
in reply to: denisT.MaxDoctor

denisT.MaxDoctor,

 

I've tried your method - installing a standalone version of pyton 2.7.15 (which is the 3ds max 2020 version) and then in turn installing various versions of scipy and numpy and copying the installed versions into the site-packages folder in the max directory tree. 
numpy-1.16.5+mkl-cp27-cp27m-win_amd64.whl from here , scipy-1.2.0-cp27-cp27m-win_amd64 from here and a regular pip install numpy. Neither option worked. 

Reading here I'm wondering if the libraries are built with the wrong version of Visual C++. Python 2.7 is built on 9.0 Max 2020 is built on 15. 

So I went ahead and installed VC15 to try to let pip build it using the --no-binary option. I've never done anything like it and are a bit out of my depth. It failed saying it needs VC 14.1, which goes against the max documentation. 
If you have any hints on how to get extensions to work in Max 2020 and numpy in particular, I'd much appreciate it! I doubt Autodesk will be bothered to help given that the support for Python 2.7 officially runs out in roughly 6 weeks and the next version of max will apparently feature py 3.x
kind regards,

Wolfgang

 

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

Post to forums  

Autodesk Design & Make Report