安装scrapy时出现安装错误

Installation error while installing scrapy

我的系统是windows 8.1,安装了python 3.7.2。现在,每当我尝试安装 -> pip install scrapy

它总是向我显示以下错误:

error: [WinError 3] The system cannot find the path specified: 'C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1\lib'

----------------------------------------
Command "c:\users\user\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\User\AppData\Local\Temp\pip-install-5lpvl9q3\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\User\AppData\Local\Temp\pip-record-5pmlq_y_\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\User\AppData\Local\Temp\pip-install-5lpvl9q3\Twisted\

感谢帮助!

拳头,你可以试试升级setuptools再试试。 (你没有说明是只有 Scrapy 有问题还是你试图安装的其他所有东西都有问题?)

python -m pip install --upgrade pip setuptools wheel

我的建议是在 windows 上使用虚拟环境或 conda

方法如下:

https://doc.scrapy.org/en/latest/intro/install.html#windows