The standard Python package management system, pip, can be used within MotionBuilder's Python interpreter to install and query Python packages.
pip is called from the command line using mobupy, the MotionBuilder Python interpreter. It cannot be called from within the MotionBuilder Python script editor.
mobupy is located in C:\Program Files\Autodesk\"MotionBuilder <VersionNumber>"\bin\x64 on Windows and /usr/autodesk/MotionBuider<VersionNumber>/bin/linux_64 on Linux.
You will need Administrator privileges on Windows or super user privileges on Linux to install packages.
pip installs packages in the MotionbBuilder installation directories by default. You will need Administrator privileges on Windows, or super user privileges on Linux, to install packages in that. If you do not have Administrator or super user privileges, or if you do not want to install packages in the MotionBuilder installation directory, you can also install packages in your user space using the --user flag.
Platform | Installing in MotionBuilder's site-packages directory | Installing in user space |
---|---|---|
Linux | sudo ./mobupy -m pip install <flags> <package> | ./mobupy -m pip install <flags> --user <package> |
Windows |
mobupy -m pip install <flags> <package>
from an command window running as Administrator |
mobupy -m pip install <flags> --user <package> |
You will also need Administrator or super user privileges to uninstall a package from the MotionBuilder site-packages directory.
Linux | sudo ./mobupy -m pip uninstall <package> |
Windows | mobupy -m pip uninstall <package> |
pip helps you maintain your MotionBuilder Python packages. You can see a list of installed packages by running ./mobupy -m pip list on Linux, and mobupy -m pip list on Windows.
For more information about pip, see the pip user guide.