0

Please bear with me as I'm a beginner python user and I have seen the other posts on this topic, but am still encountering the same problems.

I'm trying to install pandas on my mac (currently running python 2.7.3) but keep getting this error message both in the notebook and IDLE:

  Traceback (most recent call last):
   File "<pyshell#0>", line 1, in <module>
   import pandas
   ImportError: No module named pandas

I installed pandas and the relevant dependencies using MacPorts. I've seen that having two versions of python could be causing this, but after checking, I'm only running one version.

Could anyone help me out on this? Its a bit frustrating...

4

1 回答 1

0

我感觉熊猫不在正确的目录/文件夹中。你机器上的 pandas 文件夹在哪里?在我的 Windows 机器上,它位于 Python27\Lib\site-packages 文件夹中。Mac 上可能有类似的文件夹。将 pandas 文件夹复制并拖到那里,然后重新启动 Python 看看会发生什么。

于 2013-03-22T01:44:16.273 回答