安装 scrapy 时出错:退出 1 错误

问题描述 投票:0回答:2

这是我得到的错误。之前工作正常,然后我重新安装了 python(我已将其添加到系统变量中)并安装了 vscode(如果相关的话)。但即使使用 Windows 终端,我也会遇到相同的错误。我确实使用工具下载了 C++,按照链接下载并安装了它。

----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\chaitali\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Chaitali\\AppData\\Local\\Temp\\pip-install-3h22t0nk\\twisted\\setup.py'"'"'; __file__='"'"'C:\\Users\\Chaitali\\AppData\\Local\\Temp\\pip-install-3h22t0nk\\twisted\\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\Chaitali\AppData\Local\Temp\pip-record-ttosnncb\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\chaitali\appdata\local\programs\python\python39\Include\Twisted' Check the logs for full command output.
python scrapy
2个回答
1
投票

尝试手动安装 Twisted: 从这个 Python 扩展包网站 下载您的版本并使用它进行安装(如果您有 Python 3.9 和

win32
平台):

pip3 install Twisted‑20.3.0‑cp39‑cp39‑win32.whl

之后你就可以使用以下方式安装Scrapy:

pip3 install scrapy

0
投票

https://doc.scrapy.org/en/latest/intro/install.html尝试命令 - pip install Scrapy 。根据设置,它会显示一些警告。

© www.soinside.com 2019 - 2024. All rights reserved.