Set Up PyPI with a Pip Client

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

The process for setting up PyPI with a Pip client is done in 2 stages:

Running on Windows

To use Artifactory PyPI repositories on Windows, make sure to set the required environment variables for Python and Pip.

Note that on Windows platforms, %HOME%\pip\pip.ini replaces the pip.conf file described in the sections below and should be reachable through your HOME path.

Configure the Pip Client

To configure your Pip client to work with Artifactory, add the following to ~/.pip/pip.conf:

[global]
index-url = https://<USER>:<PASSWORD/TOKEN>:<YOUR_JFROG_DOMAIN>/artifactory/api/pypi/<REPO_NAME>/simple

For example:

[global]
index-url = https://johnfrog:RANDOM_TOKEN_YWRtaW46QVBBVWJjTExkZTU4WT:my-awesome.jfrog.io/artifactory/api/pypi/pypi-local/simple

Note

If credentials are required they should be embedded in the URL.

Install a Python Package to Artifactory

To install packages using pip, run:

pip3 install <PACKAGE_NAME>

For example:

pip3 install my_pypi_package