I'm trying to get a codebase running on my machine, and pip isn't finding some of the dependencies. It seems to find them on another machine, so I'd like to see which repos pip is using on the two machines so I can compare.
How can I do this?
I'm trying to get a codebase running on my machine, and pip isn't finding some of the dependencies. It seems to find them on another machine, so I'd like to see which repos pip is using on the two machines so I can compare.
How can I do this?
(copied from @Bryan Roach's comment):
pip download --no-cache-dir --verbose "foo<0" 2>&1 |grep 'location(s) to search' -A5
pip>=20
The repositories are now listed by default, no need to pass the --verbose
arg:
$ pip download --no-cache-dir "foo<0" 2>&1 | grep Looking
Looking in indexes: https://pypi.org/simple, https://my-index.local, http://127.0.0.1:9000
The repositories where pip
searches for packages are displayed when using --verbose
flag: pip install --verbose ...
or pip download --verbose ...
. Specify some non-existent requirement so pip
does not actually download/install anything. Example:
$ pip download --no-cache-dir --verbose "foo<0" 2>&1 | grep Looking
Looking in indexes: https://pypi.org/simple, https://my-index.local, http://127.0.0.1:9000