python:https://www.python.org/downloads/html
pip:https://pip.pypa.io/en/stable/installing/#upgrading-pippython
pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.orgurl
但 macox 上安裝的py3.7 只有 pip3 命令,無論你本地有沒有,先升級 pip。spa
$ pip3 -V && pip3 install -U pip && pip -Vcode
numpy:pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simplehtm
設置永久鏡像源:mkdir ~/.pip && vi ~/.pip/pip.confblog
[global] index-url=https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host=pypi.tuna.tsinghua.edu.cn