Scipy安装错误,所有依赖项安装和尝试各种安装方法时失败

时间:2014-08-15 22:13:35

标签: python numpy scipy pip scikit-learn

我在Mac 10.8,Python v2.7.2。

我尝试了所有常见的安装类型(easy_install,pip,source(w /和w / o sudo)) - 没有运气。任何提示或建议都非常感谢!

$ pip install -U scipy

#Error:

Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/3c/v7q078013t78xcf_99fp_fw00000gn/T/pip_build_Jacob/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/3c/v7q078013t78xcf_99fp_fw00000gn/T/pip-j1XXxb-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/3c/v7q078013t78xcf_99fp_fw00000gn/T/pip_build_Jacob/scipy
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
  File "/Library/Python/2.7/site-packages/pip/__init__.py", line 185, in main
    return command.main(cmd_args)
  File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 53: ordinal not in range(128)

终端的完整安装输出(很长):http://notepad.cc/silly-scipy

1 个答案:

答案 0 :(得分:1)

这可能会有所帮助:

LC_ALL=C pip install scipy

然而,它也可能不起作用,因为scipy通常很难更新。

如果您使用免费enthought distribution,则可以使用enpkg scipy。或者使用该发行版重新安装python,以便将来能够轻松更新scipy。

一般情况下,您可以查看该页面以帮助您安装python scientific packages