python3.5 安装mysqlclient

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

python 3.5 安装 mysqlclient 会失败

pip install mysqlclient

注意这里环境中只有python3.5
会出现一大堆红字 编译终止,
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1

这个问题的主要原因呢是
pip install mysqlclient
MySQLdb 现在还不支持python3.5
只是支持道python3.4
所以想要在python3.5用mysql的话需要用第三方pymysql

pip install PyMySQL

猜你喜欢

转载自blog.csdn.net/DarrenXf/article/details/83108160