当我尝试使用pip命令安装scrapy时出现以下错误
pip install scrapy
错误:需要Microsoft Visual C ++ 14.0。通过“ Visual Studio的构建工具”获得它:https://visualstudio.microsoft.com/downloads/----------------------------------------错误:命令错误,退出状态为1:'c:\ users \ user \ appdata \ local \ programs \ python \ python38-32 \ python.exe'-u -c'import sys,setuptools,tokenize; sys.argv [0] ='“'”'C:\ Users \ USER \ AppData \ Local \ Temp \ pip-install-3xq5jpwp \ Twisted \ setup.py'“'”'; 文件 ='“'”'C:\ Users \ USER \ AppData \ Local \ Temp \ pip-install-3xq5jpwp \ Twisted \ setup.py'“'”'; f = getattr(tokenize,'“' “'open'”'“',打开)(文件); code = f.read()。replace('”'“'\ r \ n'”'“','”'“'\ n'“'”'); f.close(); exec(compile(code,file,'“'”'exec'“'”')))'安装--record'C:\ Users \ USER \ AppData \ Local \ Temp \ pip-record-yyfldjdo \ install-record.txt'--single-version-externally-managed --compile --install-headers'c:\ users \ user \ appdata \ local \ programs \ python \ python38-32 \ Include \ Twisted'检查日志以获取完整的命令输出。
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
错误,它需要Visual C ++ 14.0。这是下载和安装C ++ Build Tools的链接,请尝试安装它,然后重新启动PC。链接以安装Visual C ++:https://visualstudio.microsoft.com/visual-cpp-build-tools/