Announcing uv: Python packaging in Rust
python - Issue with installing packages with pip: "Cargo, the Rust package manager, is not installed or is not on PATH" - Stack Overflow
Huak - A Python Package manager written in Rust
Cargo (Rust) inspired package manager for Python. Pyrgo
Videos
From the makers of ruff comes uv
TL;DR:
uvis an extremely fast Python package installer and resolver, written in Rust, and designed as a drop-in replacement forpipandpip-toolsworkflows.
It is also capable of replacing virtualenv.
With this announcement, the rye project and package management solution created by u/mitsuhiko (creator of Flask, minijinja, and so much more) in Rust, will be maintained by the astral team.
This "merger" and announcement is all working toward the goal of a Cargo-type project and package management experience, but for Python.
For those of you who have big problems with the state of Python's package and project management, this is a great set of announcements...
For everyone else, there is https://xkcd.com/927/.
-
Twitter Announcement
-
PyPI
-
GitHub
Install it today:
pip install uv # or pipx install uv # or curl -LsSf https://astral.sh/uv/install.sh | sh
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.
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.
Hi! I started Huak to build a package manager focusing on making Python projects more approachable by offering a standardized workflow.
https://github.com/cnpryer/huak
You do need the rust toolchain installed if you want to install huak during the PoC phase. Either way any feedback is appreciated.
If you're also a long time Python dev that enjoys package managers feel free to reach out. I'd love to chat about your preferences.