This guide uses Python's built-in tools. For a simpler setup, see the main README which uses uv.
Windows
- Download Python 3.11+ from python.org
- Run the installer as administrator
- Important: Check "Add Python to PATH" during installation
- Verify:
python --version
macOS
Using Homebrew (recommended):
brew install pythonOr download from python.org.
Verify: python3 --version
Linux
# Ubuntu/Debian
sudo apt update
sudo apt install python3 python3-venvVerify: python3 --version
Windows (PowerShell):
python -m venv env
.\env\Scripts\Activate.ps1If activation fails, run as administrator:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
macOS/Linux:
python3 -m venv env
source env/bin/activateYou'll see (env) in your prompt when active.
pip install -U 'uproot-science[dev] @ git+https://github.com/mrpg/uproot.git@main'Alternative if the above doesn't work
pip install -U 'uproot-science[dev] @ https://github.com/mrpg/uproot/archive/main.zip'uproot setup my_project
cd my_project
uproot runVisit the admin area with the provided credential.
Note: Always activate your virtual environment before running uproot commands.