windowspython-2.7configurationpip

Python - Can't find pip.ini or pip.conf in Windows


I have Python 2.7.8 installed on my Windows 7 machine, which comes with pip already pre-installed. I'm able to successfully install new packages from pip and now I need to add a custom repository URL to the install list of pip.

To do so I need to modify pip.ini which is in %APPDATA%\pip\pip.ini, according to the Official Manual. However, there is no pip folder anywhere (not in Roaming, not in Local, not in LocalLow) nor is there a PyPa folder in: C:\ProgramData\PyPA\pip\pip.conf

Could you tell me where I should search for pip.ini? How can I add a foreign repo to the install list?


Solution

  • Finally got it sorted.

    Apparently for Windows users pip.ini config file is not created, however can be added manually!

    just create new %APPDATA%\pip\pip.ini and content of custom repository:

    [install]
    find-links = https://<login>:<password>@your.repo.com/custom/url
    

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