Python上的Python pandas安装问题

时间:2015-08-09 05:45:51

标签: python macos pandas

我使用以下方法安装pandas,但是在执行导入pandas时,仍然提到找不到错误模块,如果有人有任何好主意,那就太棒了。

顺便说一句,有关于升级的消息,我是否需要在此处做任何事情?

sudo pip install pandas-0.16.2-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Password:
Unpacking ./pandas-0.16.2-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.0 in /usr/local/lib/python2.7/site-packages (from pandas==0.16.2)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/local/lib/python2.7/site-packages (from pandas==0.16.2)
Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in /usr/local/lib/python2.7/site-packages (from pandas==0.16.2)
Installing collected packages: pandas
Successfully installed pandas
Cleaning up...

python
Python 2.7.5 (default, Mar  9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pandas

which python
/usr/bin/python
sudo pip -V
Password:
pip 1.5.6 from /usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg (python 2.7)
提前谢谢, 林

0 个答案:

没有答案