pip命令自动补全功能;设置代理;使用国内源

这是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

原文地址:https://www.cnblogs.com/shengulong/p/8257011.html