1. 安装pip
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
2. 安装Xcode command line tools
xcode-select --install
3. 安装Scrapy
sudo pip install Scrapy
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
xcode-select --install
sudo pip install Scrapy