1、查看是否安装Python
➜ ~ python --version
Python 2.7.10
2、安装homebrew
https://brew.sh/index_zh-cn
将以下命令粘贴至终端。
说明:途中会下载国外镜像文件,有需要加速请先下载docker加速器,详情配置自行查找资料。
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
.....
==> Installation successful!
==> Homebrew has enabled anonymous aggregate user behaviour analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics.html
==> Next steps:
- Run `brew help` to get started
- Further documentation:
https://docs.brew.sh
- 出现以上内容,说明安装成功。
3、安装wegt
➜ ~ brew install wget
<!-- 通过help命令查看是否安装成功 -->
➜ ~ wget --help
4、安装pip
➜ ~ wget https://bootstrap.pypa.io/get-pip.py
......
➜ ~ sudo python get-pip.py
......
Installing collected packages: pip, wheel
Successfully installed pip-10.0.1 wheel-0.31.1
网友评论