Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error 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.
时间: 2023-07-02 16:06:14 浏览: 3315
修改密码失败包cracklib-dicts-2.8.16.zip
这个错误提示是由于你安装的 Python 包需要 Rust 和 Cargo 来编译扩展,但是它们没有被正确安装或者在环境变量 PATH 中没有被添加。你可以通过以下步骤来解决这个问题:
1. 安装 Rust 和 Cargo:可以通过官网 https://rustup.rs/ 安装 Rust 工具链和 Cargo。
2. 确保 Rust 和 Cargo 已经添加到 PATH 环境变量中。
3. 重新运行 pip 安装命令。如果你使用的是虚拟环境,请确保在虚拟环境中安装 Rust 和 Cargo,并且在虚拟环境中运行 pip 命令。
阅读全文