换源

npm


// taobao
npm config set registry https://registry.npm.taobao.org

// tencent
npm config set registry http://mirrors.cloud.tencent.com/npm/

// huawei
npm config set registry https://mirrors.huaweicloud.com/repository/npm/

// cnpm
npm install cnpm -g --registry=https://registry.npm.taobao.org

pip

# 1. 清华大学(听说:完全度好,速度好)
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

# 2. 阿里云(听说:完全度好,速度好)
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

# 3. 网易(听说:完全度好,速度一般)
pip config set global.index-url https://mirrors.163.com/pypi/simple/ 

# 4. 豆瓣(听说:完全度好,速度好一般)
pip config set global.index-url https://pypi.douban.com/simple/ 

# 5. 百度云(听说:完全度一般,速度好)
pip config set global.index-url https://mirror.baidu.com/pypi/simple/

# 6. 中科大(听说:完全度一般,速度好)
pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/

# 7. 华为云(听说:完全度一般,速度一般)
pip config set global.index-url https://mirrors.huaweicloud.com/repository/pypi/simple/

# 8. 腾讯云(听说:完全度一般,速度一般)
pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple/

posted @ 2023-10-17 17:46  etfolin  阅读(22)  评论(0编辑  收藏  举报