小编Mas*_*080的帖子

使用 pip 安装软件包时出现问题:“Cargo,Rust 软件包管理器,未安装或不在 PATH 上”

我正在使用 Python 虚拟环境来处理项目。设置我的 venv 并从 git 中提取后,我尝试pip install -r requirements.txt但收到以下错误:

\n
Collecting orjson==3.5.2\n  Using cached orjson-3.5.2.tar.gz (740 kB)\n  Installing build dependencies ... done\n  Getting requirements to build wheel ... done\n  Preparing metadata (pyproject.toml) ... error\n  error: subprocess-exited-with-error\n\n  \xc3\x97 Preparing metadata (pyproject.toml) did not run successfully.\n  \xe2\x94\x82 exit code: 1\n  \xe2\x95\xb0\xe2\x94\x80> [6 lines of output]\n\n      Cargo, the Rust package manager, is not installed or is not on PATH.\n      This package requires Rust and Cargo to compile extensions. Install it …
Run Code Online (Sandbox Code Playgroud)

python pip rust

20
推荐指数
2
解决办法
5万
查看次数

标签 统计

pip ×1

python ×1

rust ×1