0curl: (7) Couldn't connect to server

。_饼干妹妹 提交于 2021-02-11 14:40:43

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!