Windows Setup#

Install prerequisites#

Install Git and uv. The commands on this page use PowerShell. The standalone uv installer is:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Choose a per-user installation where offered if you do not have administrator access. Follow your organisation’s software installation policy.

Open a new terminal if uv is not yet on your PATH.

Create the development environment#

Run these commands from the directory where you keep your projects. If you will contribute through a fork, substitute your fork’s clone URL.

git clone https://github.com/pymedphys/pymedphys.git
cd pymedphys
uv python install 3.14
uv sync --python 3.14 --locked
uv run pre-commit install

The current source supports Python 3.12, 3.13, and 3.14. Python 3.14 matches the quick CI run. uv can install Python for you, so a separate Python or pipx installation is not required.

uv sync creates the repository’s .venv and installs an editable copy of PyMedPhys with the contributor dependencies. Run project commands with uv run from the repository root.

Install Pandoc if needed for notebook or document conversion. For SSH authentication, see Git with SSH on Windows.

Next steps#