Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version.
This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.4.1:
Exception:
Traceback (most recent call last):
原因很簡單:Scrapy依賴six庫氯哮,但是系統(tǒng)的six庫比較老沪饺,安裝scrapy需要卸載之后安裝一個新的躏敢。但是Mac OS本身也依賴six,導(dǎo)致無法刪除随闽,因此沒有辦法安裝Scrapy父丰。
解決的方式是:使用virtualenv來安裝肝谭。
sudo pip install virtualenv
virtualenv scrapyenv
cd scrapyenv
source bin/activate
pip install Scrapy
scrapy startproject yourproject
開始你的爬蟲之旅