/
Configure and customize pip
Configure and customize pip
You can customize your pip.conf to point to a custom pypi repository
Sometimes a pip user may want to install a python package from a repository other than http://pypi.python.org/simple/.
ONAP has a staging repository in nexus3 for example at https://nexus3.onap.org/repository/PyPi.staging/.
By default, when you "pip install" it pulls from the public pypi repo, but if you want to pull from a custom repo there are 3 ways to do so (listed in order of precedence):
By passing a CLI flag to specify a custom index url
pip install -i/--index-url <url> <package>
By setting an environment variable
export PIP_INDEX_URL=<url> pip install <package>
By specifying in a custom pip.conf file
[global] timeout = 60 index-url = https://nexus3.onap.org/repository/PyPi/simple
Exhaustive documentation on pip configuration can be found here https://pip.pypa.io/en/stable/user_guide/#config-file
Related articles
, multiple selections available,
Related content
Building of Self-Installer package from source code
Building of Self-Installer package from source code
More like this
Python POC
Python POC
More like this
How to use PyPi JJB Templates
How to use PyPi JJB Templates
More like this
How can I use the Python baseline image?
How can I use the Python baseline image?
More like this
CIA - project specific notes
CIA - project specific notes
More like this
Building a Platform-Agnostic Container Image
Building a Platform-Agnostic Container Image
More like this