您的位置:首页 > 文旅 > 旅游 > 深圳香蜜湖街道香岭社区_成都网站制作推来客网站系统_百度关键词竞价价格_常见的推广平台有哪些

深圳香蜜湖街道香岭社区_成都网站制作推来客网站系统_百度关键词竞价价格_常见的推广平台有哪些

2025/4/28 17:59:40 来源:https://blog.csdn.net/qq_42672332/article/details/147457457  浏览:    关键词:深圳香蜜湖街道香岭社区_成都网站制作推来客网站系统_百度关键词竞价价格_常见的推广平台有哪些
深圳香蜜湖街道香岭社区_成都网站制作推来客网站系统_百度关键词竞价价格_常见的推广平台有哪些

error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Cargo, the Rust package manager, is not installed or is not on PATH. This package requires Rust and Cargo to compile extensions. Install it through the system's package manager or via https://rustup.rs/ Checking for Rust toolchain.... [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.

报错内容如上。

我是windows电脑。

上面报错 其实是缺少 Rust。

Windows 用户
  1. 下载并运行 rustup-init.exe

    • 从官网下载:https://rustup.rs 或直接下载 rustup-init.exe。

    • 双击运行,在弹出的命令行窗口中:

      • 按 回车 选择默认安装。

      • 输入 1 并回车,确认安装。

      • 其实安装后是安装Microsoft Visual Studio。安装后最好重启电脑。

      • 安装 Rust 后仍报错

        • 确保关闭所有 CMD/PowerShell 窗口后重新打开,让环境变量生效。

        • 运行 rustup update 更新 Rust 工具链。

      • 网络问题

        • 使用国内镜像加速 Rust 安装:

          cmd

          复制

          下载

          set RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
          set RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup
      • 所以需要再次运行一次 rustup-init.exe

      • 这时候cmd运行下面命令 发现有了就OK了。

        rustc --version
        cargo --version
      • 再次 pip install notebook 即可

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com