Search code examples
windowspypi

How do you configure pypi under Windows?


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


Solution

  • I wasn't able to pip to use my mirror repos auto-magically just by setting up my configuration files, but I was able to use the repositories by using the -i option:

    pip install -i http://url.to.my.repository package_name