Seaborn安装错误

时间:2016-02-02 16:41:42

标签: python gcc pip decoding seaborn

我正在尝试在Ubuntu上安装seaborn,并且我已经拥有了所有必需的依赖项:Python 2.7,numpy,scipy,matplotlib和pandas。当我运行pip install seaborn时,我收到以下错误:

error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/pandas/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-UFktoK-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/pandas
Traceback (most recent call last):
  File "/usr/bin/pip", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.6/site-packages/pip/__init__.py", line 185, in main
    return command.main(cmd_args)
  File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 43: ordinal not in range(128)

我在安装python软件包之前从未遇到过解码错误。有关正在发生的事情的任何想法?

编辑:完整堆栈跟踪here

1 个答案:

答案 0 :(得分:1)

安装Seaborn的一种简单方法是从本地计算机上的github下载软件包。从终端/命令提示符转到该特定目录并键入 python setup.py install

在此之前确保您在该目录中有安装文件。这对我有用: - )