Scrapy安装失败-退出状态1错误

时间:2020-01-16 20:40:33

标签: python scrapy

    copying src\twisted\test\key.pem.no_trailing_newline -> build\lib.win32-3.8\twisted\test
copying src\twisted\test\server.pem -> build\lib.win32-3.8\twisted\test
copying src\twisted\test\test_defer.py.3only -> build\lib.win32-3.8\twisted\test
copying src\twisted\internet\iocpreactor\notes.txt -> build\lib.win32-3.8\twisted\internet\iocpreactor
copying src\twisted\internet\test\_awaittests.py.3only -> build\lib.win32-3.8\twisted\internet\test
copying src\twisted\internet\test\_yieldfromtests.py.3only -> build\lib.win32-3.8\twisted\internet\test
creating build\lib.win32-3.8\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\chain.pem -> build\lib.win32-3.8\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\not-a-certificate -> build\lib.win32-3.8\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing1.pem -> build\lib.win32-3.8\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing2-duplicate.pem -> build\lib.win32-3.8\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing2.pem -> build\lib.win32-3.8\twisted\internet\test\fake_CAs
copying src\twisted\mail\test\rfc822.message -> build\lib.win32-3.8\twisted\mail\test
copying src\twisted\python\test\_deprecatetests.py.3only -> build\lib.win32-3.8\twisted\python\test
copying src\twisted\trial\test\_assertiontests.py.3only -> build\lib.win32-3.8\twisted\trial\test
copying src\twisted\words\im\instancemessenger.glade -> build\lib.win32-3.8\twisted\words\im
copying src\twisted\words\xish\xpathparser.g -> build\lib.win32-3.8\twisted\words\xish
running build_ext
building 'twisted.test.raiser' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------

我对python和scrapy完全陌生。我已经使用python ok了几天,并且想要添加刮痕。我试图通过命令提示符安装scrapy,输入“ pip install scrapy”。它下载了一些东西,开始安装,但很快失败了。下面是大量错误日志的最后几行;

错误:命令错误,退出状态为1:'c:\ users \ thega \ appdata \ local \ programs \ python \ python38-32 \ python.exe'-u -c'import sys,setuptools,tokenize; sys.argv [0] ='“'”'C:\ Users \ thega \ AppData \ Local \ Temp \ pip-install-o99u8knn \ Twisted \ setup.py'“'”'; 文件 ='“'”'C:\ Users \ thega \ AppData \ Local \ Temp \ pip-install-o99u8knn \ Twisted \ setup.py'“'”'; f = getattr(tokenize, '“”“'open'”'“,打开)(文件); code = f.read()。replace('”'“'\ r \ n'”'“', '“'”'\\ n'“'”'); f.close(); exec(compile(code, file ,'“'”'exec'“'”')))'安装--record'C:\ Users \ thega \ AppData \ Local \ Temp \ pip-record-b2nn016h \ install-record.txt'--single-version-externally-managed --compile检查日志以获取完整的命令输出。 / p>

1 个答案:

答案 0 :(得分:3)

您已安装Microsoft Visual C ++ 14.0吗?

错误日志的最后一行显示:

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/"

链接对我来说很好。