问题
使用rust官方的rust-up.exe来安装出现以下问题
error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256' to 'D:\rust\rust\.rustup\tmp\ctihhwvp9lidhbg1_file': failed to make network request: error sending request for url (https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256): client error (Connect): tcp connect error: 由于连接方在一段时间后没有正 确答复或连接的主机没有反应,连接尝试失败。 (os error 10060): 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连 接尝试失败。 (os error 10060)
解决方案
可能是网络出现问题了,需要设置代理,我的方式是
set https_proxy=http://127.0.0.1:7897
然后重新执行就好了