问题
I'm trying to install pip with curl on macOS on 10.14.3.
This command curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
has the following output:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0 curl: (7) Couldn't connect to server
I tried to ping bootstrap.pypa.io
and the server responded.
What can I do?
回答1:
curl
is preferable but not needed here. If ping
can access the server but curl
can't, simply navigate to the file and copy-paste its content into a locally created get-pip.py
, and continue the installation.
来源:https://stackoverflow.com/questions/55112387/0curl-7-couldnt-connect-to-server