Installation ============ You need **Python 3.10 or newer**. Check with: .. code-block:: bash python --version 1. Create a virtual environment (recommended) --------------------------------------------- A virtual environment keeps this package and its dependencies separate from the rest of your system. On macOS / Linux: .. code-block:: bash python -m venv rhapsody-env source rhapsody-env/bin/activate On Windows: .. code-block:: bat python -m venv rhapsody-env rhapsody-env\Scripts\activate 2. Install the package ---------------------- Directly from GitHub: .. code-block:: bash pip install git+https://github.com/jam-sadiq/celestial-rhapsody.git Or from a downloaded copy of the source: .. code-block:: bash cd celestial-rhapsody pip install . ``pip`` also installs the dependencies (NumPy, Matplotlib and Pillow). 3. Check that it works ---------------------- .. code-block:: bash nbody --version should print ``celestial-rhapsody 0.1.0``. If your shell says ``command not found``, make sure the virtual environment is activated. You can also always run ``python -m celestial_rhapsody`` instead of ``nbody``. Optional: MP4 output -------------------- GIF output works out of the box. For ``.mp4`` files you also need `ffmpeg `_: * macOS: ``brew install ffmpeg`` * Ubuntu / Debian: ``sudo apt install ffmpeg`` * conda (any OS): ``conda install -c conda-forge ffmpeg``