【发布时间】:2014-03-15 03:12:52
【问题描述】:
我想安装 pandas 以在 Python 中使用
我有最新版本的 xcode 和命令行工具 pip、easy_install,但安装它时总是给我以下错误,谁能帮忙?
sudo easy_install pandas
> Best match: pandas 0.13.1
>Downloading https://pypi.python.org/packages/source/p/pandas/pandas-0.13.1.zip#md5=50e4902238dd5312c20c1c85fb024bb6
>Processing pandas-0.13.1.zip
>Running pandas-0.13.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-oU7Yfm/pandas-0.13.1/egg-dist-tmp-I4Mw_P
>warning: no files found matching 'README.rst' no previously-included directories found matching 'doc/build'
>warning: no previously-included files matching '*.so' found anywhere in distribution
>warning: no previously-included files matching '*.pyd' found anywhere in distribution
>warning: no previously-included files matching '*.pyc' found anywhere in distribution
>warning: no previously-included files matching '.git*' found anywhere in distribution
>warning: no previously-included files matching '.DS_Store' found anywhere in distribution
>warning: no previously-included files matching '*.png' found anywhere in distribution
>clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
>clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
>error: Setup script exited with error: command 'cc' failed with exit status 1
【问题讨论】:
-
为 XCode 安装命令行工具
-
要为 python 安装一些东西,我建议使用 pip install
。例如:'sudo pip install pandas' -
这是由于 Xcode 5.1 的更改和 Apple 对系统 Python 的构建选项的选择导致的问题。与stackoverflow.com/questions/22313407/… 重复
-
@EminMastizada 已安装最新版本的 XCode 命令行工具。
-
@NedDeily 不幸的是,这些解决方案都不适用于 pandas。所以我想这个问题仍然有效。请不要关闭。寻求更多建议。
标签: python xcode pandas command pip