安装setuotool html
执行该命令 curl https://bootstrap.pypa.io/ez_setup.py -o - | python
mac OS 自带python 2.7.6 从官网下载2.7.9安装后,在终端输入python 自动改变为2.7.9版本,且自带pip python
执行pip install scrapybootstrap
报错Perhaps your account does not have write access to this directory? 加上sudo xcode
执行sudo pip install scrapycurl
仍然报错scrapy
打开终端 执行 xcode-select --installthis
安装成功url
执行 spa
scrapy startproject demo1
在Stack Overflow 找到code
f you use pip just try:
pip install twisted
The same works with w3lib and lxml.
执 行 pip install twisted
再次执行 scrapy startproject demo1
报错 No module named w3lib.http
执 行 pip install
w3lib
再次执行 scrapy startproject demo1
成功
运行项目时报错
No module named cryptography.hazmat.bindings.openssl.binding
执行 pip install crpytography
成功