一些常用命令

1、github镜像站:www.github.com.cnpmjs.org

2、pip挂代理方式:pip install -r requirements.txt --proxy=127.0.0.1:1080

3、pip镜像站方式:

临时使用:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package

设为默认:(升级 pip 到最新的版本 (>=10.0.0) 后进行配置)

pip install pip -U

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

如果您到 pip 默认源的网络连接较差,临时使用本镜像站来升级 pip:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U

4、Go:go env -w GOPROXY=https://goproxy.cn

5、pip3更新方式:python3.exe -m pip install --upgrade pip

posted on 2020-11-14 20:48  大仁大人  阅读(87)  评论(0)    收藏  举报

导航