|
如果import pandas出错如下:
C:\Users\joeblow\Desktop\repos\BitBucket\basketball>python test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
import pandas as pd
File "C:\Python27\lib\site-packages\pandas\__init__.py", line 13, in <module>
"extensions first.".format(module))
ImportError: C extension: No module named numpy not built. If you want to import
pandas from the source directory, you may need to run 'python setup.py build_ex
t --inplace' to build the C extensions first.
可以升级pandas和numpy:
pip --upgrade pandas |
|