news 2026/6/23 9:17:22

brew 安装 rustup ,以及初始化 rustup default stable

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
brew 安装 rustup ,以及初始化 rustup default stable

brew reinstall rustup

==>Fetching downloads for:rustup

✔︎ Bottle rustup (1.28.2) [Downloaded 4.9MB/ 4.9MB]

==>Reinstallingrustup

==>Pouring rustup-1.28.2.arm64_sequoia.bottle.tar.gz

==>Caveats

To initialize `rustup`, set a default toolchain:

rustup default stable

If you have `rust` installed, ensure you have "$(brew --prefix rustup)/bin"

before "$(brew --prefix)/bin" in your $PATH:

https://rust-lang.github.io/rustup/installation/already-installed-rust.html

rustup is keg-only, which means it was not symlinked into /opt/homebrew,

because it conflicts with rust.

If you need to have rustup first in your PATH, run:

echo 'export PATH="/opt/homebrew/opt/rustup/bin:$PATH"' >> ~/.zshrc

==>Summary

🍺 /opt/homebrew/Cellar/rustup/1.28.2: 27 files, 11.5MB

==>Running `brew cleanup rustup`...

Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.

Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).

==>Caveats

zsh completions have been installed to:

/opt/homebrew/opt/rustup/share/zsh/site-functions

https://formulae.brew.sh/formula/rustup#default

安装的 https://rust-lang.github.io/rustup/

brew install rustup

brew install rustup

✔︎ JSON API formula.jws.json [Downloaded 31.7MB/ 31.7MB]

✔︎ JSON API cask.jws.json [Downloaded 15.1MB/ 15.1MB]

==>Fetching downloads for:rustup

✔︎ Bottle rustup (1.28.2) [Downloaded 4.9MB/ 4.9MB]

==>Pouring rustup-1.28.2.arm64_sequoia.bottle.tar.gz

==>Caveats

To initialize `rustup`, set a default toolchain:

rustup default stable

If you have `rust` installed, ensure you have "$(brew --prefix rustup)/bin"

before "$(brew --prefix)/bin" in your $PATH:

https://rust-lang.github.io/rustup/installation/already-installed-rust.html

rustup is keg-only, which means it was not symlinked into /opt/homebrew,

because it conflicts with rust.

If you need to have rustup first in your PATH, run:

echo 'export PATH="/opt/homebrew/opt/rustup/bin:$PATH"' >> ~/.zshrc

==>Summary

🍺 /opt/homebrew/Cellar/rustup/1.28.2: 27 files, 11.5MB

==>Running `brew cleanup rustup`...

Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.

Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).

==>Caveats

zsh completions have been installed to:

/opt/homebrew/opt/rustup/share/zsh/site-functions

rustup default stable

info:syncing channel updates for 'stable-aarch64-apple-darwin'

1009.5 KiB / 1009.5 KiB (100 %) 27.1 KiB/s in 43s

info:latest update on 2025-11-10, rust version 1.91.1 (ed61e7d7e 2025-11-07)

info:downloading component 'cargo'

info:downloading component 'clippy'

info:downloading component 'rust-docs'

info:downloading component 'rust-std'

info:downloading component 'rustc'

2.4 MiB / 60.9 MiB ( 4 %) 5.0 KiB/s in 3m 45s ETA: 3h 21m 0s

info: retrying download for 'https://static.rust-lang.org/dist/2025-11-10/rustc-1.91.1-aarch64-apple-darwin.tar.xz' (网络原因会被主动切别的站点)

1.7 MiB / 60.9 MiB ( 3 %) 14.7 KiB/s in 2m 15s ETA: 1h 8m 37s

这是 官方关于 rust 第一次创建项目的两个基本项 安装

https://www.jetbrains.com/help/rust/rust-toolchain.html#install-rust-on-your-own

https://rust-lang.github.io/rustup/installation/already-installed-rust.html

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/6/22 20:19:16

brew 安装 restup 的全过程 rustup default stable ,以及错误

安装rustup default stablerustup default stable info: syncing channel updates for stable-aarch64-apple-darwin 1009.5 KiB / 1009.5 KiB (100 %) 35.2 KiB/s in 1m 29s info: latest update on 2025-11-10, rust version 1.91.1 (ed61e7d7e 2025-11-07) info: …

作者头像 李华
网站建设 2026/6/22 23:05:49

第十四章聚类方法理论及Python实现

文章目录1.基本概念1.1 距离or相似度1.2 类或簇1.3 类与类之间的距离2. 层次聚类算法基本理论2.1 Python代码实现层次分析法例题3. K均值聚类方法3.1 K均值算法特性3.2 Python实现K均值聚类是针对给定的样本,依据它们特征的相似度或距离,将其归并到若干个…

作者头像 李华
网站建设 2026/6/23 1:06:10

VUE快速入门

VUE是一款用于构建用户界面的渐进式的JavaScript框架 准备&#xff1a;1.引入VUE模块2.创建VUE程序的应用实例&#xff0c;控制视图的元素3.准备元素(div),被Vue控制<body><div id"app"><h1>{{message}}</h1><h2>{{count}}</h2>…

作者头像 李华
网站建设 2026/6/23 4:18:01

Ajax-快速学习

作用&#xff1a;数据交换&#xff1a;通过Ajax可以给服务器发送请求&#xff0c;并获取服务器响应的数据异步交互&#xff1a;可以在不重新加载整个页面的情况下&#xff0c;与服务器交换数据并更新部分网页的技术扩展&#xff1a;同步与异步的区别代码示例<input type&quo…

作者头像 李华