我已经安装了numpy,scipy和其他一些模块,包括用于python v.3.3 win 64 bit的pandas。我在我得到其他模块的网站上找不到这个模块,它说我没有,但我找不到这个安装。所以我得到以下内容:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import pandas
File "C:\Python33\lib\site-packages\pandas\__init__.py", line 44, in <module>
from pandas.io.api import *
File "C:\Python33\lib\site-packages\pandas\io\api.py", line 15, in <module>
from pandas.io.gbq import read_gbq
File "C:\Python33\lib\site-packages\pandas\io\gbq.py", line 10, in <module>
import pkg_resources ImportError: No module named 'pkg_resources'
答案 0 :(得分:2)
这是因为您的Setuptools安装显示已损坏或不在PYTHONPATH
- 尝试reinstall it:
在终端中,运行以下命令:
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python
或者卷曲:
curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | python