Wednesday, 24 May 2023

[Python] pip over proxy (e.g. behind a firewall)

pip install --proxy http://[<usr_name>[:<password>]@]<proxyserver_name>:<port#> <pkg_name>
You might want to upgrade pip while you are at it.
python[.exe] -m pip install --proxy http://[<usr_name>[:<password>]@]<proxyserver_name>:<port#> --upgrade pip

No comments:

Post a Comment

[git] Create a local branch from another branch

From the active branch git checkout -b <LOCAL_BRANCH> From a donator branch git checkout -b <LOCAL_BRANCH> <DONATING_BRANCH...