python38pip装不了东西_pip不能安装任何东西

这是链接到下面的博客文章的全文:

如果您最近尝试使用pip安装包,则可能遇到以下错误:Could not fetch URL https://pypi.python.org/simple/Django/: There was a problem confirming the ssl certificate:

Will skip URL https://pypi.python.org/simple/Django/ when looking for download links for Django==1.5.1 (from -r requirements.txt (line 1))

Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl certificate:

Will skip URL https://pypi.python.org/simple/ when looking for download links for Django==1.5.1 (from -r requirements.txt (line 1))

Cannot fetch index base URL https://pypi.python.org/simple/

Could not fetch URL https://pypi.python.org/simple/Django/1.5.1: There was a problem confirming the ssl certificate:

Will skip URL https://pypi.python.org/simple/Django/1.5.1 when looking for download links for Django==1.5.1 (from -r requirements.txt (line 1))

Could not fetch URL https://pypi.python.org/simple/Django/: There was a problem confirming the ssl certificate:

Will skip URL https://pypi.python.org/simple/Django/ when looking for download links for Django==1.5.1 (from -r requirements.txt (line 1))

Could not find any downloads that satisfy the requirement Django==1.5.1 (from -r requirements.txt (line 1))

No distributions at all found for Django==1.5.1 (from -r requirements.txt (line 1))

Storing complete log in /Users/paul/.pip/pip.log

这似乎是旧版本的OpenSSL与pip 1.3.1不兼容的问题。如果您使用的是非库存的Python发行版(特别是EPD 7.3),那么您很可能有一个不需要大量工作就无法使用pip 1.3.1的设置。

目前最简单的解决方法是安装pip 1.2.1,它不需要SSL:curl -O https://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz

tar xvfz pip-1.2.1.tar.gz

cd pip-1.2.1

python setup.py install

如果你使用的是EPD,并且你没有将它用于一个可能出现问题的类,那么你可能需要考虑安装新的化身:热情的冠层。我知道他们已经意识到了前一个版本的OpenSSL所带来的问题,并且可以想象他们现在正在使用一个新的版本,这个版本应该与pip 1.3.1很好地配合。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值