我已经尝试了 1-2 个小时来安装pandas
.
试过了:
sudo easy_install pandas
,
sudo pip install pandas
手动:
python setup.py build
,
python setup.py install
现在,当我pip list
获得该模块时:
Error when trying to get requirement for VCS system Command /usr/local/bin/git config remote.origin.url failed with error code 1 in /Users/Diolor, falling back to uneditable format
Could not determine repository location of /Users/Diolor
pandas (0.12.0)
而且当然:
>>> import pandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pandas
我运行 OS X 10.8,它因 gcc 兼容性而臭名昭著(或者至少我不走运)。我已经在 xcode 中安装了 gcc。还:
$ which gcc
/usr/bin/gcc
pytz、numpy和scipy都可以成功导入。