1

我已经尝试了 1-2 个小时来安装pandas.

试过了: sudo easy_install pandassudo 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都可以成功导入。

4

1 回答 1

3

有什么特别的理由不使用Anaconda发行版吗?

于 2013-09-30T04:48:40.577 回答