Fill these in once
- Install uv
brew install uv - Create a project and add a package
uv init my-project && cd my-project uv add requestsuv downloads a suitable Python by itself if you don't have one.
- Write a tiny script and run it
echo 'import requests; print("requests", requests.__version__)' > hello.py uv run hello.py
Check it worked
- Check the version
uv --version
Undo it
- Uninstall uv
brew uninstall uv
- Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh - Load uv into this terminal
source $HOME/.local/bin/env - Create a project and add a package
uv init my-project && cd my-project uv add requestsuv downloads a suitable Python by itself if you don't have one.
- Write a tiny script and run it
echo 'import requests; print("requests", requests.__version__)' > hello.py uv run hello.py
Check it worked
- Check the version
uv --version
Undo it
- Uninstall uv
rm ~/.local/bin/uv ~/.local/bin/uvx
- Install uv
winget install --id astral-sh.uv -eClose and reopen PowerShell afterwards.
- Create a project and add a package
uv init my-project; cd my-project uv add requestsuv downloads a suitable Python by itself if you don't have one.
- Write a tiny script and run it
Set-Content hello.py 'import requests; print("requests", requests.__version__)' uv run hello.py
Check it worked
- Check the version
uv --version
Undo it
- Uninstall uv
winget uninstall --id astral-sh.uv