0

I know that by default, pip uses PyPI to look for packages. I would like to know if there are other domains other than PypI that pip uses.

sinoroc
  • 18,409
  • 2
  • 39
  • 70
Gilles Criton
  • 673
  • 1
  • 13
  • 27
  • Please see https://pip.pypa.io/en/stable/cli/pip_install/#description. – medium-dimensional Nov 03 '22 at 17:25
  • 1
    It feels to me like this question is out of scope for StackOverflow... Also this feels like this is very easy to figure out for someone who actually wants to know... Anyway... -- That I know of: the distribution files found on PyPI are actually served from `files.pythonhosted.org`, so that is at least this additional domain that _pip_ uses out of the box. – sinoroc Nov 03 '22 at 17:25
  • 1
    If you're looking how to configure your firewall: https://stackoverflow.com/a/67416056/7976758 – phd Nov 03 '22 at 17:29
  • I don't think this question is out of scope. Many companies for security reasons block sites. I need to list the lists that pip could use. I only got Pypi so I'm just asking the community whether or not I had missed something. So this question might be useful for anyone working with Python in a company that blocks internet access. – Gilles Criton Nov 03 '22 at 20:40

2 Answers2

2

PIP can install from many different sources. You can find the whole list here

You can also setup your own Python package repository and configure pip to install from there.

Shiplu Mokaddim
  • 56,364
  • 17
  • 141
  • 187
2

PIP Can install from

  • PyPI
  • VCS project URL
  • Local project directories
  • Local or remote source archives

to run from a local passage you can input pip install /opt/mypackage

Finally, run pip install --help to see all installation options

Anger
  • 91
  • 5