环境:centos7 +  Django2.0 + python3.6

django2.0连接mysql需要安装PyMySQLmysqlclient

pip3 install PyMySQL

pip3  install  mysqlclient

 

在安装mysqlclient  报错

django2.0 在安装mysqlclient 报错ERROR: Command errored out with exit status 1: python setup.py egg_info

之后安装相关依赖

yum install  mysql-devel

yum install python-devel

再次安装 pip3  install  mysqlclient           ok!!!!!!!

django2.0 在安装mysqlclient 报错ERROR: Command errored out with exit status 1: python setup.py egg_info

相关文章:

  • 2021-12-14
  • 2022-01-08
  • 2021-08-20
  • 2021-04-26
  • 2022-01-20
  • 2021-09-11
  • 2021-04-01
  • 2021-11-05
猜你喜欢
  • 2022-12-23
  • 2021-06-04
  • 2021-08-06
  • 2021-04-21
  • 2021-04-26
  • 2021-10-14
相关资源
相似解决方案