Debian下Python错误No module named MySQLdb

admin 2021年4月16日05:10:21其他技术文章评论80阅读模式
摘要

1、安装pip
2、pip install mysql-python
3、如果是debian的话就会再报错fails with EnvironmentError: mysql_config not found
先安装apt-get install libmysqlclient-dev 再安装mysql-python就可以搞定了

1、安装pip
2、pip install mysql-python
3、如果是debian的话就会再报错fails with EnvironmentError: mysql_config not found
先安装apt-get install libmysqlclient-dev 再安装mysql-python就可以搞定了

相关推荐: 卸载阿里云盾(安骑士)监控&屏蔽云盾IP

阿里云默认开通后系统后台会有监控进程,自动监控系统后台进程,查杀病毒,检测系统漏洞等功能,同时也暴露了我们的隐私,所以有需要的话可以将其卸载掉. 卸载阿里云盾监控wget http://update.aegis.aliyun.com/download/unin…

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2021年4月16日05:10:21
  • 转载请保留本文链接:https://aqxbk.com/archives/othersite/2021/04_16/56178.html

发表评论