python setuptools和easy_install numpy问题 [英] python setuptools and easy_install numpy question

查看:72
本文介绍了python setuptools和easy_install numpy问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在这里有点不适. setuptools是否不使用easy_install来获取您在setup.py中指定的其他依赖项?我问是因为说我有一个setup.yp,并且在install_requires = ["numpy"]中.现在,如果我运行python setup.py install会给出错误:

So I'm having a bit of a dillema here. Doesn't setuptools use easy_install to get the additional dependencies you specify in a setup.py ? I'm asking because say I have a setup.yp and in the install_requires = ["numpy"]. Now if I run python setup.py install that gives a error:

_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",则可以.什么可能导致这种行为?

However if I run "easy_install numpy" works. What could cause this kind of behaviour ?

关于, 博格丹

推荐答案

您收到的错误类型通常是因为您没有安装Python开发包.如果您使用的是基于Ubuntu的发行版,请转到Synaptic,然后搜索python-dev(名称可能不是100%准确,请在此处进行一些浏览).

The kind of error you're receiving is usually because you don't have the Python development package installed. If you're using an Ubuntu based distribution, go to Synaptic, and search for python-dev ( the name may not be 100% accurate, do a little browsing there ).

easy_install可能与预建的东西配合使用.

It could be that easy_install works with prebuilt stuff.

这篇关于python setuptools和easy_install numpy问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆