pip
https://zhuanlan.zhihu.com/p/…
pip install markdown -i https://pypi.tuna.tsinghua.edu.cn/simple
. # tsinghua source PIP config set global index - url https://pypi.tuna.tsinghua.edu.cn/simple # or: . # ali source PIP config set global index - source url https://mirrors.aliyun.com/pypi/simple/ # tencent PIP config set global. The index - a url http://mirrors.cloud.tencent.com/pypi/simple # douban source PIP config set global. The index - the url http://pypi.douban.com/simple/
cargo
https://www.qttc.net/542-rust…
Edit ~/.cargo/config to add something
[source.crates-io]
replace-with = 'tuna'
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"