Bog*_*dan 2 python numpy setuptools
所以我在这里遇到了一些困境.setuptools不使用easy_install来获取您在setup.py中指定的其他依赖项吗?我问,因为说我有一个setup.yp并且在install_requires = ["numpy"]中.现在如果我运行python setup.py install会出错:
_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
Run Code Online (Sandbox Code Playgroud)
但是,如果我运行"easy_install numpy"的作品.什么可能导致这种行为?
此致,波格丹
您收到的错误通常是因为您没有安装Python开发包.如果您使用的是基于Ubuntu的发行版,请转到Synaptic,然后搜索python-dev(名称可能不是100%准确,请在那里稍微浏览一下).
可能是easy_install与预建的东西一起工作.
归档时间: |
|
查看次数: |
2586 次 |
最近记录: |