Installing Python packages

Any Python package can be used in DSS. There is no restriction to which package can be installed and used.

The recommended way to install your own Python packages is to install them in a code environment.

Additional prerequisites

Some Python packages may require additional system dependencies if they include native code. In particular, you may need to install system development tools, the development package for the Python interpreter itself, and additional development libraries.

If you get an error when installing a Python package, please refer to code environment troubleshooting.

Installing custom Python packages

Note

This will make your custom Python packages globally available for all Python code running with DSS.

If you have custom python code, for instance a module with user-defined functions and classes, you can copy them in the lib/python subdirectory of the DSS data directory. Then you will be able to import them in all Python recipes or notebooks within DSS.