如何修复MicrosoftFotVisualStudio在安装包phat时出现的错误?

2024-06-11 16:11:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我在命令提示符下运行以下命令

py -3.7 -m pip install phat

我得到了以下错误:

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2 ---------------------------------------- ERROR: Command "'C:\Users\rabih\AppData\Local\Programs\Python\Python37\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\rabih\\AppData\\Local\\Temp\\pip-install-r5wlnxa3\\phat\\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\rabih\AppData\Local\Temp\pip-record-ahhgu5et\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\rabih\AppData\Local\Temp\pip-install-r5wlnxa3\phat\

这与setup.py有关吗?在这种情况下,如何修复此错误? 知道我使用的是AcANDA和Python 3.7,我安装了微软Visual C++的构建工具,仍然没有修复错误


Tags: installpippylocal错误codeerrorrecord