2011-07-08 29 views
2

所以我在这里有一个dillema。 setuptools不使用easy_install来获取您在setup.py中指定的附加依赖关系吗?我问,因为说我有一个setup.yp和install_requires = [“numpy”]。现在,如果我运行python setup.py的安装,给出了一个错误:python setuptools和easy_install numpy question

_configtest.c:1:20: error: Python.h: No such file or directory 
_configtest.c:1:20: error: Python.h: No such file or directory 
lipo: can't figure out the architecture type of: /var/tmp//cciDxELX.out 
_configtest.c:1:20: error: Python.h: No such file or directory 
_configtest.c:1:20: error: Python.h: No such file or directory 

但是,如果我跑“的easy_install numpy的”作品。什么会导致这种行为?

问候, 波格丹

回答

5

那种您收到错误通常是因为你没有安装Python的开发包做。如果您使用的是基于Ubuntu的发行版,请转至Synaptic,然后搜索python-dev(名称可能不是100%准确,请稍微浏览一下)。

这可能是easy_install与预先构建的东西一起使用。

+0

我在MacOS上。问题在于,它仅在从setup.py列为install_requires时才会出现这些错误。如果我只是从命令行进入easy_install numpy,错误消失了。 – Bogdan

相关问题