Computer Notes/Python/PIP

From Cramsession
Revision as of 17:43, 1 June 2026 by Mflavell (talk | contribs) (Created page with "= 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....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
✍️ Verified Author: MflavellClick 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