Audrey M. Roy Greenfeld

Quietly building the future.

Pip to Rye

2024-06-12

Suppose you have a Python project with a requirements.txt file and no pyproject.toml.

The following creates:

rye init --virtual -r requirements.txt

Then, instead of pip installing new packages, use rye add to add them to your pyproject.toml and install them in your .venv. For example:

rye add "air==0.3.0"