error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1

当出现这个问题的时候, 网上找了好多办法都没有解决:
网上的一般方法都是对python2下处理:
sudo apt-get install python-dev
就可以解决

然而我的是python3的虚拟环境:
sudo apt-get install python-dev # for python2.x installs
sudo apt-get install python3-dev # for python3.x installs

这样就可以解决了,选择不同的版本。

猜你喜欢

转载自blog.csdn.net/qq_34971175/article/details/78989109