第一种方法:

下面一句话就搞定。但特殊情况下(对rust版本有要求的时候)需要使用第2种方法

apt install rustc  cargo -y

第2种方法:

不想用apt

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

运行后,会让你选择方式,选择1,安装。 

How to Install Rust and Cargo on Ubuntu & Other Linux

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐