简体   繁体   中英

Python 3.4 windows, pip install fails

I am struggling with adding to my Python 34 installation:

C:> pip install --upgrade pip
Could not find any downloads that satisfy the requirement pip in c:\\python34\\lib \\site-packages
Collecting pip
No distributions at all found for pip in c:\\python34\\lib\\site-packages

What am I doing wrong? Please help.

You need to run pip as a script and python will be the main executable.

python -m pip install -U pip

The recommended procedure will be to update from get-pip.py

curl https://bootstrap.pypa.io/get-pip.py | python

Seems I found the reason: the Windows computer is within a state agency behind a hefty firewall. I tried the same install with Python 3.4.3 from my laptop connected through my phone and had no problem at all. So, I think the firewall was in the way. Thanks for looking into this, @froost1999 and @Rockse .

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