【问题标题】:Scrapy install fail - error of exit status 1Scrapy 安装失败 - 退出状态错误 1
【发布时间】:2020-05-03 18:14:18
【问题描述】:
    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。我尝试通过命令提示符安装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'"'"', open)(file);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 检查日志以获取完整的命令输出。

【问题讨论】:

  • 想补充一点,它说要查看的错误日志不存在:(

标签: python scrapy


【解决方案1】:

您是否安装了 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/"

该链接对我来说很好。

【讨论】:

  • 谢谢你,Callum,我疲惫的眼睛错过了,我现在已经安装了它,scrapy 已经为我启动并运行了,谢谢!!
  • 很高兴听到 - 刮刮乐!
猜你喜欢
  • 2014-07-06
  • 2014-11-02
  • 2020-03-07
  • 2011-11-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多