• webqwe-资源分享和开发经验
AD
AD

Home / 开发 / Rust 安装后没有找到.cargo文件夹

Rust 安装后没有找到.cargo文件夹

2023-10-16 11:23:18
586 阅读

安装后提示位置,但是找不到文件夹,并且无法使用

The Cargo home directory is located at:

  C:\Users\user\.cargo\bin

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:

  C:\Users\user\.cargo\bin\bin
                                                                                                                        
The Cargo home directory is located at:

  C:\Users\user\.cargo\bin

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:

  C:\Users\user\.cargo\bin\bin

This path will then be added to your PATH environment variable by
modifying the HKEY_CURRENT_USER/Environment/PATH registry key.

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.


解决办法

需要以管理员身份从 PowerShell 再运行安装文件 rustup-init.exe

Current installation options:


   default host triple: x86_64-pc-windows-msvc
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation

然后按1回车,继续安装。

Rust is installed now. Great!

To get started you may need to restart your current shell.
This would reload its PATH environment variable to include
Cargo's bin directory (%USERPROFILE%\.cargo\bin).

Press the Enter key to continue.

安装完成,成功



uuid怎么下载(免费) | 求资源
本站提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。 本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。 如果您喜欢该程序,请支持正版,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。敬请谅解!
标签
author
pings

每天都在打酱油~

评论
登录后评论