0curl:(7)无法连接到服务器

时间:2019-03-12 00:32:47

标签: macos curl

我正在尝试在10.14.3。的macOS上安装带有curl的pip。

此命令curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py具有以下输出:

% 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

我尝试ping bootstrap.pypa.io,服务器响应。

我该怎么办?

1 个答案:

答案 0 :(得分:0)

curl是可取的,但此处不需要。如果ping可以访问服务器但curl无法访问服务器,则只需navigate to the file并将其内容复制粘贴到本地创建的get-pip.py中,然后继续安装。