python3.5刚升级完python3.6 安装 mysqlclient 会报错
执行:
-
apt-get install mysql-client
-
sudo apt-get install libmysqlclient-dev
如果报错:
_mysql.c:40:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
执行:
sudo apt-get install python3.6-dev libmysqlclient-dev
这个过程下载有点慢,完了以后再安装就好了
转:
https://blog.csdn.net/qq_28359387/article/details/79901971
和