Cargo /Users/asher/.cargo/bin/cargo install --color=always --force evcxr_repl 问题解决

/Users/asher/.cargo/bin/cargo install --color=always --force evcxr_repl 问题解决

解决办法1 - 配置代理

如果你的本地安装了代理ClashX之类的,打开设置可以看到代理的端口

创建cargo的config

vim ~/.cargo/config

将你的本地代理放入

[http]
proxy = "127.0.0.1:7890"
[https]
proxy = "127.0.0.1:7890"

然后再进行install就可以体会到起飞的感觉了

解决办法2 - 修改下载仓库

修改下载仓库

[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"

# Rust  Cargo  代理 

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×