Skip to content

Install from zero

What you need

operating system Linux (x86-64), or macOS 15 or newer (Intel or Apple silicon)
Windows no native support; use Linux inside Windows with WSL, then follow the Linux steps
disk space about 3 GB for the default environment (measured on Linux)
network for the download
tools a terminal, git, curl

You do not need to install Python, and you need no administrator rights for the steps below.

New to the terminal? The Missing Semester is a good short course.

1. Install Pixi

Pixi is a package manager. It reads a list of exact versions from the PhosKinTime folder and builds a private environment in that folder. It does not touch your system Python.

The official installation page gives this command for Linux and macOS:

curl -fsSL https://pixi.sh/install.sh | bash

Check that page first; it may have changed. Then close the terminal, open a new one, and check:

pixi --version
pixi 0.67.2

Your version number may be higher.

2. Get PhosKinTime

git clone https://github.com/bibymaths/phoskintime.git
cd phoskintime

3. Install the environment

pixi install

This downloads Python and every library at pinned versions. It ends with:

✔ The default environment has been installed.

4. Check it

pixi run check-import
project imports ok
pixi run phoskintime --help

You see the list of commands: prep, run, validate, example, bundle, analyze, simulate, export, app, clean.

Two rules that prevent most problems

  1. Run every command from the phoskintime folder. pixi run phoskintime ... always works from that folder, even if you call it from somewhere inside it. A relative path such as my-project/config.toml is read from there.
  2. Use pixi run in front of everything. pixi run python my_script.py runs your script with PhosKinTime's own Python. A bare python will not find the libraries.

pixi shell opens a shell inside the environment, if you prefer. Then call python -m phoskintime.config.cli <command>.

Updating later

git pull
pixi install

A new release can change defaults. Note the version you used with your results; every run records it in metadata.json.

Next: Your first model.