这是pip自带的功能
执行的脚本
把脚本写入.zshrc或者profile等里面,执行source立即生效
设置代理:
pip --proxy=http://username:password@proxyURL:portNumber install sunburnt
使用国内源:
pip3 install --upgrade pip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
参考:
1、http://www.th7.cn/Program/Python/201708/1227399.shtml
2、https://www.jianshu.com/p/dc376efab7c0