Scripting Guide > Python > Install a Python Package > Install Compiled Python Packages using the Command Line and jpip
Publication date: 07/08/2024

Install Compiled Python Packages using the Command Line and jpip

Python packages that are pure Python scripts will successfully install. However, some packages that need to compile source code to build a dynamic library may not install.

To install those, use jpip in the command line. jpip is a pip wrapper script designed for JMP. jpip can be created using either JSL or Python. In Python, the jpip wrapper is created and managed using the jmputils package.

The following example creates the jpip wrapper then installs the scikit-learn package from the command line.

Installing the scikit-learn package

1. Generate the customized jpip wrapper script with JSL or JMP’s Python Editor:

import jmp
import jmputils
 
jmputils.create_jpip( 'destination_path' )

2. Open a command prompt or terminal:

On Windows, use Command Prompt or PowerShell.

On macOS, use the Terminal.

3. Install scikit-learn using jpip:

jpip install --user --no-warn-script-location sklearn

The Python package scikit-learn can now be used in JMP’s Python environment.

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