1、直接安装
安装方法:
在终端输入命令:
pip install scrapy #Windows系统
pip3 install scrapy #mac 系统
若安装成功,那么恭喜你。报错请接着往下看:
2、错误类型及解决方法
1、终端安装报错:
Failed cleaning build dir for cryptography Failed to build cryptography
Could not build wheels for cryptography
which use PEP 517 and cannot be installed directly
在终端输入以下命令:
pip install --upgrade pip
安装成功后接着安装scrapy。
pip