安装mysqlclient报错:

 

ERROR: Command errored out with exit status 1: 'd:\cs\csruanjiananzhuang\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\at2893\\AppData\\Local\\Temp\\pip-install-mevniq0a\\mysqlclient\\setup.py'"'"'; __file__='"'"'C:\\Users\\at2893\\AppData\\Local\\Temp\\pip-install-mevniq0a\\mysqlclient\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\at2893\AppData\Local\Temp\pip-record-ow_v2_4a\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\cs\csruanjiananzhuang\python\Include\mysqlclient' Check the logs for full command output.

 

pip 安装 mysqlclient 报错  Command errored out with exit status 1

 

解决方法:

 

 1、命令行查看python版本。

  pip 安装 mysqlclient 报错  Command errored out with exit status 1

 

   2、网址: https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient

 

   下载:mysqlclient-1.4.6-cp37-cp37m-win32.whl

   cp37:python3.7   win32 ---32位

 

   pip 安装 mysqlclient 报错  Command errored out with exit status 1

 

       3、下载之后放在文件夹下面, 在该目录下,启动命令行,输入命令pip install mysqlclient-1.4.6-cp37-cp37m-win32.whl    即可下载安装mysqlclient成功。

 

    pip 安装 mysqlclient 报错  Command errored out with exit status 1

 

    pip 安装 mysqlclient 报错  Command errored out with exit status 1

 

ysqlclient-1.4.6-cp37-cp37m-win32.whl

相关文章:

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