Python - cant find pip.ini or pip.conf in Windows

前端 未结 11 1993
谎友^
谎友^ 2021-01-31 07:57

I got Python 2.7.8 installed on my Win7 machine, which comes with pip already pre-installed.
I\'m successfully able to install new packages from pip and now I need to add c

11条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-31 08:39

    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://:@your.repo.com/custom/url
    

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

提交回复
热议问题