Scripting Guide > Python > Install a Python Package > The jmputils Package
Publication date: 07/08/2024

The jmputils Package

The jmputils package constructs and manages the jpip wrapper script used to install Python packages into JMP’s Python environment. The jmputils package resides in the same directory as JMP’s embedded Python standard library files.

The following example creates the jpip wrapper.

jmputils.create_jpip('directory_path')

The jmputils.create_jpip() function creates the terminal or command shell version of the jpip script within the directory specified. The jpip script is a wrapper for the Python pip command. It ensures the appropriate environment variables are configured and packages are installed to the JMP site-packages directory.

jmputils.jpip('pip_cmd', packages='string')

The jmputils.jpip() function wraps the Python pip command. Pass the desired pip command as a string, and optionally a space-delimited string of packages to install. The packages argument defaults to an empty string.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).