Centos6.7-PIP安装熊猫失败

时间:2019-04-29 16:53:16

标签: linux pip centos

嘿,我试图在生产服务器上安装我的一个库依赖项(Pandas),但是我无法通过

[root@warsaw-ovi-training tmp]# python2.7
Python 2.7.6rc1 (default, Apr 29 2019, 18:03:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
[root@warsaw-ovi-training tmp]# pip -V
pip 19.1 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)
[root@warsaw-ovi-training tmp]#

当我运行典型的pip install pandas时,我得到了此输出

[root@warsaw-ovi-training tmp]# pip -V
pip 19.1 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)
[root@warsaw-ovi-training tmp]# pip install pandas
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pandas
/usr/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:354: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server 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/advanced-usage.html#ssl-warnings
  SNIMissingWarning
/usr/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:150: 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/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning
  Using cached https://files.pythonhosted.org/packages/b2/4c/b6f966ac91c5670ba4ef0b0b5613b5379e3c7abdfad4e7b89a87d73bae13/pandas-0.24.2.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-ikNNQy/pandas/setup.py", line 733, in <module>
        packages=find_packages(include=['pandas', 'pandas.*']),
    TypeError: find_packages() got an unexpected keyword argument 'include'
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-ikNNQy/pandas/
[root@warsaw-ovi-training tmp]#

我也尝试了无缓存设置,我在centos 6.7上运行

知道是什么问题吗?

0 个答案:

没有答案