简体   繁体   中英

Python issue installing pip/packages windows

I have some issues to install package in Python.

Python version : 3.5.2

I used " pip install --upgrade pip " to reach the 9.0.3 version but I had proxy issues.

Then, I used the following command to set proxy variable :

set http_proxy=http://pseudo%20space:mdp%2Dtiret@proxy:port

set https_proxy=https://pseudo%20space:mdp%2Dtiret@proxy:port

Finally I use :

pip install --upgrade --proxy=https://pseudo%20space:mdp%2Dtiret@proxy:port pip

I get :

Could not fetch URL https://pypi.python.org/simple/pip: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED]....

(I have the admin rights)

Edit : - It is not a specific issue with pip, I can not install any package

The upgrade command

pip install --upgrade pip 

does not work on Windows because the program attempts to delete itself while it is running. In Windows you need to do

python -m pip install --upgrade pip

Solution by OP.

Issues fixed with:

python -m pip install --upgrade --proxy=http://name:password@proxy:port --trusted-host pypi.python.org packageName

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM