ubuntu 上面想用python3.6,但是装完后虚拟环境中pip安装mysqlclient报错,错误如图
pip install mysqlclient 报错:error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

解决方案:apt-get install python3.6-dev
安装过程下载很慢,安装完就没问题了
如果还有问题,尝试:sudo apt-get install libmysqlclient-dev 然后重新按照

相关文章:

  • 2022-01-05
  • 2021-10-07
  • 2022-12-23
  • 2021-08-12
  • 2022-02-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案