我正在尝试在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
,服务器响应。
我该怎么办?
答案 0 :(得分:0)
curl
是可取的,但此处不需要。如果ping
可以访问服务器但curl
无法访问服务器,则只需navigate to the file并将其内容复制粘贴到本地创建的get-pip.py
中,然后继续安装。