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