[英]curl https://pypi.python.org/simple/pip returns nothing
I have run into a very strange error on my MacBook. 我在MacBook上遇到了一个非常奇怪的错误。 I've seen some similar posts but none of them solved my issue.
我见过一些类似的帖子,但没有一个解决了我的问题。
I've been trying to install some Python libraries, and I tried to use curl to view this link: https://pypi.python.org/simple/pip/ 我一直在尝试安装一些Python库,并且尝试使用curl来查看此链接: https : //pypi.python.org/simple/pip/
It's very strange that the curl command returned nothing but a bash prompt like: curl命令只返回如下bash提示,这很奇怪:
$ curl https://pypi.python.org/simple/pip
$
At the beginning, I thought that's my proxy/firewall's problem, but when I try the link in my Safari/Chrome, the web browser displays the page perfectly. 一开始,我认为这是我的代理服务器/防火墙的问题,但是当我在Safari / Chrome浏览器中尝试链接时,网络浏览器会完美显示该页面。
What's wrong with my curl command? 我的curl命令出了什么问题? I am using curl coming alone with Mac OS El Capitan.
我正在Mac OS El Capitan中单独使用curl。
$ which curl
/usr/bin/curl
Try using curl in verbose mode to see why: 尝试在详细模式下使用curl以查看原因:
curl -v https://pypi.python.org/simple/pip
The response is a permanent redirect. 该响应是永久重定向。 It works if you append a trailing slash as follows:
如果您添加尾随斜杠,则如下所示:
curl https://pypi.python.org/simple/pip/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.