MySQLdb是在python2 上用的,python3就是用
pip3 install mysqlclient
安装有可能出现
OSError: mysql_config not found
那就先
apt install libmariadbd-dev
再
pip3 install mysqlclient
就会成功
MySQLdb是在python2 上用的,python3就是用
pip3 install mysqlclient
安装有可能出现
OSError: mysql_config not found
那就先
apt install libmariadbd-dev
再
pip3 install mysqlclient
就会成功