1.安裝 HomeBrew
Homebrew, Mac系統(tǒng)的包管理器,用于安裝NodeJS和一些其他必需的工具軟件
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安裝 Python
mac 自帶Python 2.7的版本止喷,也可以安裝最新的版本
$ brew install python3
brew 安裝的Python版本會自帶 pip包管理
2.安裝 Requests
$ pip3 install requests
安裝的是python3的版本 所以用的是pip3
3.安裝 Beautiful Soup 4.6.0
pip3 install beautifulsoup4
4.安裝scrapy
pip install scrapy
[參考鏈接]
1.Python 安裝指南
2.Requests 上手
3.