pip 操作

清空已安装的包:
pip freeze | xargs pip uninstall -y

升级所有包:
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
https://stackoverflow.com/a/3452888/1076889