我在命令提示符下运行以下命令
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有关吗?在这种情况下如何解决此错误? 知道我正在使用anaconda和python 3.7,并且已经安装了Microsoft Visual C ++生成工具,但仍然无法解决错误