可以用命令
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
npm config set registry https://registry.npm.taobao.org
很惊人的是,用 IDEA 开发,你甚至不用把 maven 写到 path 里面去
只需修改 maven 的配置文件,然后在工程里面选择对应的配置文件即可
<mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/repositories/central/</url> <mirrorOf>central</mirrorOf></mirror>
使用 vim 编辑
vi ~/.cargo/config
[source.crates-io]registry = "https://github.com/rust-lang/crates.io-index"replace-with = 'ustc'[source.ustc]registry = "git://mirrors.ustc.edu.cn/crates.io-index"[net]git-fetch-with-cli = true