Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 732 Bytes

README.md

File metadata and controls

38 lines (29 loc) · 732 Bytes

PhysicsLab Guide Documentation

Python

  1. Install uv (only once)

    curl -LsSf https://astral.sh/uv/install.sh | sh
  2. Source .bashrc (only once)

    source ~/.bashrc
  3. Install specific version of python (once per version)

    # System python version is 3.12 (2024.09.13)
    uv python install 3.12
  4. Go to your project directory

  5. Create virtual environment with your desired python version

    uv venv --python=3.12 
  6. Install dependencies

    uv pip install numpy matplotlib scipy notebook # any packages you need
  7. Activate virtual environment (every time you want to use it)

    source .venv/bin/activate
  8. Enjoy!