On my Mac, *nix based systems I configure pip by modifying the files:
~/.pypirc
~/.pip/pip.conf
The documentation that I've found so far, says that under windows you need to set the HOME environment variable and place the files in:
%HOME%\.pypirc
%HOME%\pip\pip.conf
However, this doesn't seem to work for me and when I try to use pip to install a package from one of our alternate servers the package can't be found. Any suggestions?
Links I've found so far
On Windows the configuration file is %APPDATA%\pip\pip.
pypirc file is loaded from the $HOME directory (or %USERPROFILE% on Windows).
The pip configuration docs at PyPA tell you to use a pip.ini
file stored either:
C:\ProgramData\pip\
(Win7 and up), or%HOME%\pip\
orIn case of multiple pip.ini files, per-user settings override global settings. See the docs for more details.
I was trying to work out where to put .pypirc on my Windows installation and the answer was C:\Users\YourName\.pypirc
. Thanks Ernst Haagsman https://blog.jetbrains.com/pycharm/2017/05/how-to-publish-your-package-on-pypi/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With