Package Installation

Workbench

These instructions assume you’re using pip for installing packages. Other tools may use the same index URL in their configuration.

Tip

The pip command may differ depending on your local python installation. If the pip command is not found, try the pip3 command instead.

You can set package installation options for pip to install Python packages by creating or modifying the /etc/pip.conf file. For more information about configuring pip, refer to the pip documentation User Guide.

Specifying a Package Repository

If you have a Python package repository for your own Python packages such as Posit Package Manager, or have a PyPI mirror inside your firewall, you can configure Posit Workbench to use that package repository when installing packages via pip.

For example, to configure the public Posit Package Manager as the repository with a timeout of 60 seconds, add the following to /etc/pip.conf:

[global]
timeout = 60
index-url = https://packagemanager.posit.co/pypi/latest/simple
trusted-host = packagemanager.posit.co

Setting index-url replaces pip’s default repository (PyPI). To add a new repository, use the extra-index-url setting.

Back to top