Skip to main content
Skip table of contents

How To: Install Missing Python Packages in Python 3.11

Overview:

The new Python 3.11 environment will come with a minimal selection of pre-installed packages. These are packages that are required for SPy and Data Lab to operate effectively. Please see Preinstalled Packages for more information about preinstalled Python packages.

Solution

Addressing Missing Packages:

If you run your notebook and there are failed imports this is most likely due to packages not being installed. These issues can be addressed the following ways.

Using the Notebook

To leverage libraries not pre-installed in 3.11, simply run your notebook in a 3.11 kernel and employ the familiar pip install command from a cell to install the missing packages. This approach equips your 3.11 environment with the necessary libraries for your project. Please see Installing Python Modules for more information about installing Python Packages.

Using the Terminal

Open a terminal and activate Python 3.11 environment with pyversion 3.11. You can now proceed to install any missing packages using pip install <package>

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.