当我尝试安装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
有人能帮我解决这个问题吗?
当前回答
对我来说,我必须确保我使用了正确版本的密码学。 pip.freeze有一个较旧的版本,一旦我使用了最新的问题,就会消失。
其他回答
在我的情况下,pip无法安装库,我尝试了上面给出的解决方案,但没有一个有效,但下面的方法对我有效:
sudo apt upgrade gcc
在我的例子中,命令sudo apt-get install unixodbc-dev解决了这个问题。我得到了一个特定于sql.h头文件的错误。
在我的案例中,是oursql导致了如下所示的相同(通用)错误。
In file included from oursqlx/oursql.c:236:0:
oursqlx/compat.h:13:19: fatal error: mysql.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for oursql
Running setup.py clean for oursql
因此,我知道我需要libmysqlcppconn-dev包。
sudo apt-get install libmysqlcppconn-dev
一切都好!
在Linux Mint中使用python3
$ sudo apt install build-essential python3-dev
应该足够了
除了一些其他有用的答案,如果docker-compose把你带到这里——使用你的venv集,运行:
easy_install docker-compose