UV

curl -LsSf https://astral.sh/uv/install.sh | sh
uv python install 3.12
uv venv --python 3.12 --prompt my-project
source .venv/bin/activate

To create pyproject.toml

uv init

To create lock file

uv lock

To install library

uv pip install package_name

To add library

uv add package_name

To sync environments

uv sync

Uninstall package

uv pip uninstall package_name

Remove package from toml and lock files

uv remove package_name

Leave a Reply