Python Extension Libraries

Autodesk 3ds Max ships with a pre-built version of PySide 2.0, and is the preferred library for using QT with Python in 3ds Max (see Creating Python Uis). You may install other CPython extension libraries as well. However, while every effort has been made to ensure that CPython extension libraries such as PyQt, SciPy, NumPy, PIL, and so forth work with Python in 3ds Max, Autodesk does not provide technical support for them.

Python 3

3ds Max includes the standard version of Python 3. This version's binaries are compiled with VC15, matching 3ds Max and Max Batch, meaning they are binary compatible and most CPython extension libraries should work "out of the box". You simply need to use PIP to install them (see the instructions below).

Installing PIP for package management

Pip is a package management system for Python. It is useful for managing additional Python modules, including managing building modules from source (for example, NumPy). For libraries that contain pre-built binaries (such as zmq), these should work without recompilation with Python 3. You can force pip to build from source with the --no-binary flag, and specifying a required version (see example below).

Using pip with Python 3

The pip installer script is included with the 3ds Max Python 3 distribution as of 3ds Max 2021.1 Update. You can install or upgrade it to the most recent version by running .\python -m ensurepip --upgrade --user from a command prompt.

To install a package, such as Pillow:     .\python.exe -m pip install --user pillow    

Note:

Make sure you are executing the 3ds Max python.exe, and not another version of python on your path.  The -m command-line argument runs pip as a module, and the --user option ensures that the package is installed in your user directory rather than the 3ds Max Python directory.