Rustlang "no override and no default toolchain set"

2,658 阅读1分钟

来源: Rustlang "no override and no default toolchain set" 发布时间: 2021-06-08 14:01:38

当运行 rustc --version就报错了,报错内容如下:

no override and no default toolchain set


报错原因,rust没有正确安装,我们可以做如下操作:

  1. 通过 rustup 安装 stable版本的
$ rustup install stable
  1. 设置stable为默认的版本
$ rustup default stable