Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can customize your pip.conf to point to a custom pypi repository

https://pip.pypa.io/en/stable/user_guide/#config-file


Sometimes a pip user may want to install a python package from a repository other than http://pypi.python.org/simple/.

...

  1. By passing a CLI flag to specify a custom index url

    Code Block
    languagebash
    pip install -i/--index-url <url> <package>
  2. By setting an environment variable

    Code Block
    languagebash
    export PIP_INDEX_URL=<url>
    pip install <package>
  3. By specifying in a custom pip.conf file

    Code Block
    languagebash
    [global]
    timeout = 60
    index-url = https://nexus3.onap.org/repository/PyPi/simple



Info
Exhaustive documentation on pip configuration can be found here https://pip.pypa.io/en/stable/user_guide/#config-file

Content by Label
showLabelsfalse
max5
spacesDW
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("python","pip","pypi") and type = "page" and space = "DW"
labelspython pip pypi

...