Installation ============= Basic Installation -------------------------------- BESSER is tested on Python **3.10**, **3.11**, and **3.12**. We recommend creating a virtual environment (e.g. `venv `_, `conda `_). .. warning:: Python 3.13 is **not** supported yet because some dependencies have not released compatible wheels. Please use Python 3.10 or 3.12 for now. The latest stable version of BESSER is available in the Python Package Index (PyPi) and can be installed using .. code-block:: console $ pip install besser BESSER can be used with any of the popular IDEs for Python development such as `VScode `_, `PyCharm `_, `Sublime Text `_, etc. .. image:: img/vscode.png :width: 700 :alt: VSCode :align: center Running BESSER Locally ---------------------- If you are interested in developing new code generators or designing BESSER extensions, you can download and modify the full codebase, including tests and examples. **Step 1: Clone the repository** .. code-block:: console $ git clone https://github.com/BESSER-PEARL/BESSER.git $ cd BESSER **Step 2: Create a virtual environment** Run the setup script to create a virtual environment (if not already created), install the requirements, and configure the ``PYTHONPATH``. This ensures compatibility with IDEs (like VSCode) that may not automatically set the ``PYTHONPATH`` for recognizing *besser* as an importable module. .. code-block:: console $ python -m venv venv $ venv\Scripts\activate $ source venv/bin/activate # Linux / macOS $ pip install -r requirements.txt .. note:: Each time you start your IDE, activate the virtual environment to ensure the environment is properly configured. **Step 3: Run an example** To verify the setup, you can run a basic example. .. code-block:: console $ cd tests/BUML/metamodel/structural/library $ python library.py For common installation issues, see :doc:`troubleshooting`.