pip install mysqlclient 报错:error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013205877/article/details/81260066

ubuntu 上面想用python3.6,但是装完后虚拟环境中pip安装mysqlclient报错,错误如图
这里写图片描述

解决方案:apt-get install python3.6-dev
安装过程下载很慢,安装完就没问题了
如果还有问题,尝试:sudo apt-get install libmysqlclient-dev 然后重新按照

猜你喜欢

转载自blog.csdn.net/u013205877/article/details/81260066