小编Rux*_*ima的帖子

pip install mysqlclient with Python 3.8 不起作用

我有一个使用 Python 3.8 的 django 项目,我尝试通过以下命令安装mysqlclient库:pip install mysqlclient我收到这个错误:

MySQLdb/_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2
Run Code Online (Sandbox Code Playgroud)
  1. 我尝试使用来自何处的轮子文件进行安装(我尝试了此站点上的每个轮子),但出现错误:*...is not a supported wheel on this platform.*
  2. 我尝试从源代码安装它,但是当我运行此命令时python setup.py install,出现相同的错误:
  MySQLdb/_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with …
Run Code Online (Sandbox Code Playgroud)

python mysql django pip

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

django ×1

mysql ×1

pip ×1

python ×1