在pycharm设置中安装mysqlclient时遇到了这个问题
错误:命令“'C:\ Users \ miaw \ PycharmProjects \ PleaseWork \ venv \ Scripts \ python.exe'-u -c'导入setuptools,标记化; 文件 ='“'” 'C:\ Users \ miaw \ AppData \ Local \ Temp \ pycharm-packaging \ mysqlclient \ setup.py'“'”'; f = getattr(tokenize,'“'”'open'“'”',打开)( 文件); code = f.read()。replace('“'”'\ r \ n'“'”','“'”'\ n'“'”')); f .close(); exec(编译(代码,文件,'“'”'exec'“'”'))''安装-记录'C:\ Users \ miaw \ AppData \ Local \ Temp \ pip-record-qeq94583 \ install-record.txt'-单一版本-外部托管--compile --install-headers'C:\ Users \ miaw \ PycharmProjects \ PleaseWork \ venv \ include \ site \ python3 .6 \ mysqlclient'“在C:\ Users \ miaw \ AppData \ Local \ Temp \ pycharm-packaging \ mysqlclient \
中失败,错误代码为1答案 0 :(得分:0)
嗨,我刚刚通过在此链接https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient中安装“ sqlclient”软件包来解决了该问题,有关更多信息,请查看此视频https://www.youtube.com/watch?v=6SnE0r7g2lE