Try installing the tooling for the Rust programming language, because it seems like you have a dependency that uses Rust.
For mac OS, I recommend using brew.
brew install rust
Otherwise use the steps from the Rust install page.
You can check that rust is installed properly with:
rustc --version
Once you are finished try again to pip install your requirements file.
Answer from ajrichards on Stack OverflowTry installing the tooling for the Rust programming language, because it seems like you have a dependency that uses Rust.
For mac OS, I recommend using brew.
brew install rust
Otherwise use the steps from the Rust install page.
You can check that rust is installed properly with:
rustc --version
Once you are finished try again to pip install your requirements file.
I had the same issue with the docker image python:3.12-alpine. This answer was the first one I found. When I tried to install the rust compiler on the alpine container, my pip package (solana dependency - solders) took forever to compile. The only solution I found was to use python:3.12-bookworm instead. It didn’t require any compilation or rust installation. It just worked out of the box. I hope my answer helps someone save a few evenings.
Pip package manager is unable to detect the Rust compiler (cargo) in my system's PATH
Jupyter Lab install fails without Rust?
Enhance missing Cargo error message with platform-specific instructions
python - Cargo, the Rust package manager, is not installed or is not on PATH Django app deployment on vercel error - Stack Overflow
I keep getting this same error on my code whenever i try to run venv_requirements.txt, I installed rust and cargo but its still giving me the same error...
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/