安裝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
成功