当我尝试安装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
其他回答
Error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
执行sudo apt-get install python-dev解决了这个错误。
这对我来说已经足够了:
sudo apt-get install build-essential
对于Python 3.4使用:
sudo apt-get install python3.4-dev
对于Python 3.5,请使用:
sudo apt-get install python3.5-dev
对于Python 3.6使用:
sudo apt-get install python3.6-dev
对于Python 3.7,请使用:
sudo apt-get install python3.7-dev
对于Python 3.8使用:
sudo apt-get install python3.8-dev
... 等等……
h只是一个头文件。gcc使用它来构建应用程序。您需要安装一个名为python-dev的包。这个包包括头文件、静态库和用于构建Python模块、扩展Python解释器或在应用程序中嵌入Python的开发工具。
输入:
$ sudo apt-get install python-dev
or
# apt-get install python-dev
参见http://www.cyberciti.biz/faq/debian-ubuntu-linux-python-h-file-not-found-error-solution/
在我的情况下,pip无法安装库,我尝试了上面给出的解决方案,但没有一个有效,但下面的方法对我有效:
sudo apt upgrade gcc