mac Python 安装相关库
一:requests:
终端中输入 pip3 install requests
二:lxml
新的OSX10.11.5, 安装lxml库,可以用下面的命令:
1. 安装brew:
2. 安装lxml:
3. pip install lxml
4. pip install scrapy
1. 安装brew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install libxml2
brew install libxslt
brew link libxml2 --force
brew link libxslt --force
4. pip install scrapy