mac rust 更新,使用rustup update stable, 执行正常,但是rustc --version 还是之前的版本?

作者站长头像
站长
· 阅读数 15

rustup 更新,执行事正常的,但是没有效果,rustc 还是之前的版本

执行记录如下:

rustup default stableinfo: using existing install for 'stable-aarch64-apple-darwin'info: default toolchain set to 'stable-aarch64-apple-darwin'

stable-aarch64-apple-darwin unchanged - rustc 1.78.0 (9b00956e5 2024-04-29)


rustc --versionrustc 1.75.0 (82e1608df 2023-12-21)

回复
1个回答
avatar
test
2024-08-11

删除当前 的rust,然后安装最新版的,问题解决了

回复
likes
适合作为回答的
  • 经过验证的有效解决办法
  • 自己的经验指引,对解决问题有帮助
  • 遵循 Markdown 语法排版,代码语义正确
不该作为回答的
  • 询问内容细节或回复楼层
  • 与题目无关的内容
  • “赞”“顶”“同问”“看手册”“解决了没”等毫无意义的内容