# uv setup and Python versions
## Setup
#### Install `uv`
```
curl -LsSf https://astral.sh/uv/install.sh | sh
```
Or with the Homebrew package manager on OSX:
```
brew install uv
```
And with [`pipx`](pipx%20setup.md)
```
pipx install uv
```
#### Update `uv`
```
uv self update
```
## Python versions
#### List available versions
```
uv python list
```
#### Install a version
```
uv python install 3.12
```
#### Pin a directory to a version
```
uv python pin 3.12
```
#### Create a `.venv`
```
uv venv --python 3.12
```
## Tools
```
uv tool install $TOOL
```
Example tools:
```
uv tool install xlsx2csv httpie ipython
```