签到成功

知道了

CNDBA社区CNDBA社区

Pip 安装包 No matching distribution found for PrettyTable 解决方法

2019-09-22 10:42 4874 0 原创 Python
作者: Dave

使用PIP 安装python 包时报如下错误:https://www.cndba.cn/dave/article/3718

https://www.cndba.cn/dave/article/3718
https://www.cndba.cn/dave/article/3718
https://www.cndba.cn/dave/article/3718

[dave@www.cndba.cn pip-9.0.0]# pip install PrettyTable
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Collecting PrettyTable
/usr/lib/python2.6/site-packages/pip-9.0.0-py2.6.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/lib/python2.6/site-packages/pip-9.0.0-py2.6.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Could not fetch URL https://pypi.python.org/simple/prettytable/: There was a problem confirming the ssl certificate: [Errno 1] _ssl.c:490: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version - skipping
  Could not find a version that satisfies the requirement PrettyTable (from versions: )
No matching distribution found for PrettyTable

这里的包肯定是存在的,所以解决方法,更换Pip源即可。

https://www.cndba.cn/dave/article/3718

Python 更改 PyPI 源
https://www.cndba.cn/dave/article/2261https://www.cndba.cn/dave/article/3718

当然这里还有 SNIMissingWarning 和 InsecurePlatformWarning的警告,这2个警告需要安装其他的依赖包。 要求Python 的版本要在2.7 以上,我这里是2.6.6. 所以警告先不管了。

https://www.cndba.cn/dave/article/3718
https://www.cndba.cn/dave/article/3718https://www.cndba.cn/dave/article/3718https://www.cndba.cn/dave/article/3718

版权声明:本文为博主原创文章,未经博主允许不得转载。

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
Dave

Dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 1879
    原创
  • 2
    翻译
  • 437
    转载
  • 127
    评论
  • 访问:3440180次
  • 积分:3049
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by ZhiXinTech · 皖ICP备19020168号·

        QQ交流群