Computer Notes/Python/PIP
From Cramsession
< Computer Notes | Python
✍️ Verified Author: Mflavell • Click to view professional profile & credentials
Adding a local python mirror
Windows
- Press Win + R, type %APPDATA%, and hit Enter. (This opens your AppData\Roaming folder).
- Look for a folder named pip. If it’s not there, right-click, select New > Folder, and name it pip.
- Go inside that pip folder.
- Right-click, select New > Text Document.
- Name it pip.ini (make sure you delete the .txt extension at the end).
- Open it in Notepad, paste your mirror configuration, and save it.
Linux / Mac
- mkdir -p ~/.config/pip
- nano ~/.config/pip/pip.conf
Lines to add
[global] index-url = https://some_repo_server_fqdn/artifactory/api/pypi/pypi-virtual/simple trusted-host = repo_server_fqdn
Check your work
run:
pip config list