使用pip命令全局配置pip 阿里云镜像源
pip config --global set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip config --global set install.trusted-host mirrors.aliyun.com
不用找pip配置文件路径,pip会根据当前系统的环境变量自动完成配置
器通过代理临时上网:
执行命令行:
export http_proxy=http://136.15.2.3:909/ && export https_proxy=http://136.15.2.3:909/
取消代理:
unset http_proxy
unset https_proxy