[本地部署]: 宝塔的虚拟环境,安装报错

Author: ft4710403Created Aug 20, 2024Updated Aug 20, 2024
Labelsquestionlocalhost deployment

是否已存在现有反馈与解答?

  • 我确认没有已有issue或discussion,且已阅读常见问题

是否是一个代理配置相关的疑问?

  • 我确认这不是一个代理配置相关的疑问。

错误描述

Collecting primp>=0.6.0 (from duckduckgo-search>=5.3.0->-r requirements.txt (line 25)) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/3f/39/e19361a629083228a0df97ac718965ab27626e2173a073f8a31736115ca9/primp-0.6.0.tar.gz (79 kB) 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 ╰─> [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.

复现操作

宝塔面板的python项目: python版本:3.10.12 pip安装模块报错

错误日志

No response

运行环境

markdown
- OS: 
- Browser: 
- Gradio version: 
- Python version: 3.10.12

补充说明

No response

Source: GaiZhenbiao/ChuanhuChatGPT