我最近用python 2.7安装了anaconda,我试图运行一个使用pandas的脚本,但它不起作用。我环顾四周,但还没有设法找到解决方案。我正在运行Windows 10.对此非常感谢!
$ python bitstamp.py
Traceback (most recent call last):
File "bitstamp.py", line 22, in <module>
import integrate_function
File "C:\Users\Jinzo\Desktop\zeta_v05\integrate_function.py", line 22, in <module>
import pandas as pd
File "C:\Python27\lib\site-packages\pandas\__init__.py", line 35, in <module>
"the C extensions first.".format(module))
ImportError: C extension: DLL load failed: %1 is not a valid Win32 application. not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.
编辑:我不知道它在错误消息中引用的setup.py。运行它只是给出了
python setup.py build_ext --inplace --force
C:\Python27\python.exe: can't open file 'setup.py': [Errno 2] No such file or directory