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 09:06:14 浏览: 3871
这个错误提示是由于你安装的 Python 包需要 Rust 和 Cargo 来编译扩展,但是它们没有被正确安装或者在环境变量 PATH 中没有被添加。你可以通过以下步骤来解决这个问题:
1. 安装 Rust 和 Cargo:可以通过官网 https://rustup.rs/ 安装 Rust 工具链和 Cargo。
2. 确保 Rust 和 Cargo 已经添加到 PATH 环境变量中。
3. 重新运行 pip 安装命令。如果你使用的是虚拟环境,请确保在虚拟环境中安装 Rust 和 Cargo,并且在虚拟环境中运行 pip 命令。
相关问题
Installing build dependencies ... done 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 ╰─> [134 lines of output] lapack_opt_info: lapack_mkl_info: customize UnixCCompiler libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf'] NOT AVAILABLE
根据你提供的信息,这似乎是在安装Python包时出现的错误。出现这种错误可能是因为缺少某些依赖项。你可以尝试以下步骤来解决这个问题:
1. 确认你已经安装了正确版本的Python。
2. 确认你已经安装了所有必需的依赖项,例如lapack和mkl_rt库,可以使用以下命令安装:
```
sudo apt-get install liblapack-dev
sudo apt-get install libopenblas-dev
```
3. 确认你已经安装了正确版本的pip和setuptools,可以使用以下命令更新它们:
```
pip install --upgrade pip setuptools
```
4. 重新安装你想要安装的Python包。
如果上述步骤均无法解决你遇到的问题,你可以尝试在安装包之前升级你的操作系统和相关软件包。
Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
"Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error" 这个错误信息表明在准备元数据时出现了错误,并且子进程退出时发生了错误。这可能是由于安装构建依赖项时出现问题导致的。同时,也可能是由于无法成功运行pyproject.toml文件的元数据准备操作引起的。此外,pip子进程在安装构建依赖项时也可能发生错误。
为了解决这个问题,可以尝试以下几种方法:
1. 检查构建依赖项的安装过程是否出错,确保依赖项的安装没有问题。
2. 确认pyproject.toml文件是否正确配置并且没有任何错误。可以检查文件的语法和格式是否正确,并确保所有必要的信息都被正确填写。
3. 检查pip子进程是否运行成功。可以尝试重新运行pip安装命令,或者更新pip版本,以确保pip的正常运行。
如果以上方法都不能解决问题,建议查看详细的错误日志,以获取更多关于错误原因的信息。根据错误的具体内容,可能需要进一步的调试和排查来解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [windows环境搭建Superset问题集锦](https://blog.csdn.net/qq_16933879/article/details/125796928)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文
相关推荐














