Customizing environment templates by using pip

Configure your custom environment template to use custom packages from a shared storage volume or from project storage.

Required roles

  • You need Admin or Editor permissions on the project to create an environment template and add a software configuration.

Installing pip packages from a shared storage volume

Your platform administrator can add a custom Python distribution package to a directory on a shared storage volume. You then add the path to the package in your custom environment template where it will be picked up by the runtime builds.

For details, see Examples of environment template customizations.

Installing pip packages from project storage

You can add a custom Python distribution package to your project in Watson Studio and then add the path to this file to your environment template where it will be picked up by the runtime builds.

To add pip packages from project storage to your custom environment template:

  1. Create a Python project with a setup.py build script.
  2. Generate a distribution package.
  3. Upload the zipped distribution file to your project as a data asset.
  4. Create an environment template in your project and add a customization:

For details, see Examples of environment template customizations.

Learn more

Parent topic: Customizing environments