我想在PyCharm中安装Scrapy软件包,但是每次都会发生此错误:
ERROR: Command errored out with exit status 1:
ERROR: Command errored out with exit status 1: 'C:\Users\HP\scrapingenv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\HP\\AppData\\Local\\Temp\\pycharm-packaging\\Twisted\\setup.py'"'"'; __file__='"'"'C:\\Users\\HP\\AppData\\Local\\Temp\\pycharm-packaging\\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\HP\AppData\Local\Temp\pip-record-0h3rlipy\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\HP\scrapingenv\include\site\python3.8\Twisted' Check the logs for full command output.
答案 0 :(得分:1)
在终端上,导航到所需的文件夹,尝试运行以下命令:
pip install scrapy
请继续尝试多次安装,因为它对我有用。