电脑无法安装python-无法安装Python库

我无法安装任何Python库.我正在使用pip 9.0.1和python 2.7.我收到以下错误:

EN-NishantS:~ 8417$pip install presto-python-client

Collecting presto-python-client

Could not find a version that satisfies the requirement presto-python-client (from versions: )

No matching distribution found for presto-python-client

在使用pip install -vvv运行时,我得到以下内容:

Collecting presto-python-client

1 location(s) to search for versions of presto-python-client:

* https://pypi.python.org/simple/presto-python-client/

Getting page https://pypi.python.org/simple/presto-python-client/

Looking up "https://pypi.python.org/simple/presto-python-client/" in the cache

No cache entry available

Starting new HTTPS connection (1): pypi.python.org

"GET /simple/presto-python-client/ HTTP/1.1" 403 170

Status code 403 not in [200, 203, 300, 301]

Could not fetch URL https://pypi.python.org/simple/presto-python-client/: 403 Client Error: TLSv1.2+ is required for url: https://pypi.python.org/simple/presto-python-client/ - skipping

Could not find a version that satisfies the requirement presto-python-client (from versions: )

Cleaning up...

No matching distribution found for presto-python-client

Exception information:

Traceback (most recent call last):

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main

status = self.run(options, args)

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 324, in run

requirement_set.prepare_files(finder)

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 380, in prepare_files

ignore_dependencies=self.ignore_dependencies))

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 554, in _prepare_file

require_hashes

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 278, in populate_link

self.link = finder.find_requirement(self, upgrade)

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/index.py", line 514, in find_requirement

'No matching distribution found for %s' % req

DistributionNotFound: No matching distribution found for presto-python-client

Looking up "https://pypi.python.org/pypi/pip/json" in the cache

No cache entry available

Starting new HTTPS connection (1): pypi.python.org

"GET /pypi/pip/json HTTP/1.1" 403 170

Status code 403 not in [200, 203, 300, 301]

There was an error checking the latest version of pip

Traceback (most recent call last):

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/outdated.py", line 128, in pip_version_check

resp.raise_for_status()

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/models.py", line 862, in raise_for_status

raise HTTPError(http_error_msg, response=self)

HTTPError: 403 Client Error: TLSv1.2+ is required for url: https://pypi.python.org/pypi/pip/json

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值