No default toolchain configured after installing r

2019-03-09 09:12发布

I installed Rust using rustup, but when I try to enter a Rust command like cargo or rustc in my console, the following error appears:

error: no default toolchain configured

Is this a known issue? I'm using Windows 7.

标签: rust
3条回答
戒情不戒烟
2楼-- · 2019-03-09 09:32

In my case, I had multirust installed and the following worked for me:

multirust install stable
multirust default stable
查看更多
forever°为你锁心
3楼-- · 2019-03-09 09:36

If it seems that rustup did not successfully install and configure the stable toolchain, you can do it manually:

rustup install stable
rustup default stable

After testing, it seems like my incomplete installation may have been caused by a network error. You can also try to reinstall to solve the problem.

查看更多
爷的心禁止访问
4楼-- · 2019-03-09 09:39

The problem is due to my connection and my proxy which didn't allow rustc, cargo, and others to be downloaded.

I thought that the all the executables were all-in-one but apparently not.

查看更多
登录 后发表回答