程序员最近都爱上了这个网站  程序员们快来瞅瞅吧!  it98k网:it98k.com

本站消息

站长简介/公众号

  出租广告位,需要合作请联系站长

+关注
已关注

分类  

列表(0)

面向对象(0)

标签  

列表(0)

面向对象(0)

日期归档  

安装scipy时出现ERROR: Command errored out with exit status 1:的解决方案

发布于2019-08-20 11:04     阅读(31775)     评论(0)     点赞(13)     收藏(1)


问题描述

pip install scipy

使用pip安装numpy没有问题,但安装pandas时出现如下问题。尝试过通过升级setuptools,无果。

ERROR: Command errored out with exit status 1:
 command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-IWfYMk/pandas/setup.py'"'"'; __file__='"'"'/tmp/pip-install-IWfYMk/pandas/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
     cwd: /tmp/pip-install-IWfYMk/pandas/
Complete output (8 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-IWfYMk/pandas/setup.py", line 21, in <module>
    import versioneer
  File "versioneer.py", line 1629
    print("Adding sample versioneer config to setup.cfg", file=sys.stderr)
                                                              ^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

解决方案

安装pip3,然后用pip3进行pandas和scipy等软件的安装

    > sudo apt-get install python3-pip
    > pip3 install pandas
    > pip3 install scipy
    
  • 1
  • 2
  • 3
  • 4


所属网站分类: 技术文章 > 博客

作者:阿里妈妈

链接:https://www.pythonheidong.com/blog/article/49068/1d3444c0eebf20a873a5/

来源:python黑洞网

任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任

13 0
收藏该文
已收藏

评论内容:(最多支持255个字符)