Skip to content

Instantly share code, notes, and snippets.

@matandobr
Last active July 11, 2021 11:06
Show Gist options
  • Save matandobr/7701062fa0d55ab75896db5317676d79 to your computer and use it in GitHub Desktop.
Save matandobr/7701062fa0d55ab75896db5317676d79 to your computer and use it in GitHub Desktop.
Configuring private PyPi/PIP server Windows 10

How to configure Windows PIP to install packages from alternative PyPi

Configuring PIP

First, Figure out where is the 'global' setting is taken from -

C:> pip -v config list

It will print something like - For variant 'global', will try loading 'C:\ProgramData\pip\pip.ini' ...

Create the file if does not exist (C:\ProgramData\pip\pip.ini) and edit it with the details of the private pypi, for example -

[global]

trusted-host = repo.myprivaterepo.io

index-url = https://repo.myprivaterepo.io/repository/pipall/simple/

index = https://repo.myprivaterepo.io/repository/pipall/simple/

Should work now...

Still does not work?

Go through any of the other files from the pip config output, and remove the contect of them.

Good luck! commend for any questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment