当我尝试安装doo-server时,我得到了以下错误:
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
有人能帮我解决这个问题吗?
当我尝试安装doo-server时,我得到了以下错误:
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
有人能帮我解决这个问题吗?
当前回答
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev
sudo easy_install greenlet
sudo easy_install gevent
其他回答
您需要安装这些软件包:
sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev libjpeg-dev zlib1g-dev
尽管这是一个老问题,我还是要补充一下我的观点。
我认为正确的答案取决于gcc编译器的错误消息,比如“Missing xxxx.h”
这在某些情况下可能会有所帮助:
sudo apt-get install build-essential python-dev
提示:请不要认为这是一个答案。也只是为了帮助别人。
我在安装psycopg2时遇到了类似的问题。我安装了build-essential, python-dev和libpq-dev,但它抛出了同样的错误。
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
因为我在部署时很匆忙,所以最后只是复制了整行 @user3440631的回答。
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev
而且效果很好。但是找不到哪个包解决了我的问题。 如果有人从上面的命令中了解psycopg2依赖包,请更新评论。
使用Ubuntu 14.04 LTS和运行python 3.5的virtualenv,我必须做:
sudo apt-get install python3.5-dev
其他命令:
sudo apt-get install python-dev
sudo apt-get install python3-dev
没有帮助。我认为这是因为virtualenv需要依赖于系统范围的python-dev包,它必须匹配virtualenv的python版本。但是,使用上述命令安装python-dev for python 2。X和蟒蛇Ubuntu 14.04是3.4版,不是3.5版。
TL;DR:执行如下命令
sudo apt-get install python2-dev gcc
我在尝试pip安装python2.7的模块时遇到了这个问题。
很多答案提到,解决这个问题的方法是sudo apt-get install python-dev。然而,这对我不起作用,因为包裹没有找到。然而,这条评论顶部显示的命令存在,我最终能够pip安装模块。