Python Forum
Upgrading pip behind a firewall - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Networking (https://python-forum.io/forum-12.html)
+--- Thread: Upgrading pip behind a firewall (/thread-39646.html)



Upgrading pip behind a firewall - tester_V - Mar-21-2023

Greetings!
I'm having a problem upgrading pip from behind a firewall.
I usually have no problems installing modules:
pip --proxy http://proxy-chain.something.com:111/ pyodbc
but having a problem with the 'pip --upgrade'
I tried and tried and nothing works:
pip --proxy http://proxy-chain.something.com:111/ --upgrade pip
pip --proxy http://proxy-chain.something.com:111/ --upgrade
pip upgrade --proxy http://proxy-chain.something.com:111/ pip
pip --upgrade --proxy http://proxy-chain.something.com:111/ pip
Any help is appreciated!
Thank you!


RE: Upgrading pip behind a firewall - Dante6511 - Mar-25-2023

https://bootstrap.pypa.io/get-pip.py

Does pasting the content of the above page into a file called get-pip.py on your system and then running the below command work for you. ( execute the below from the folder in which the file is present :) )

python get-pip.py

Reference - https://pip.pypa.io/en/stable/installation/

If the above doesn't work, I think I remember running into the same problem and then somehow getting it upgraded/installed in a python virtual env.

You might want to try the above in a python virtual environment too

Hope the above helps .. 🙂


RE: Upgrading pip behind a firewall - tester_V - Mar-31-2023

Thank you!