2.3.3 Installing OSI for Python on Linux

2.3.3.1 Installing from PyPI

Steps
  1. Open a terminal.

  2. Optionally create and activate a new virtual environment.

    python3 -m venv venv
    source venv/bin/activate
  3. Install Open Simulation Interface.

    pip install open-simulation-interface

2.3.3.2 Installing from source

*Prerequisites
Steps
  1. Open a terminal.

  2. Clone the Open Simulation repository.

    git clone https://github.com/OpenSimulationInterface/open-simulation-interface.git
  3. Switch to the repository directory.

    cd open-simulation-interface
  4. Optionally create and activate a new virtual environment.

    python3 -m venv venv
    source venv/bin/activate
  5. Install Open Simulation Interface.

    1. Local installation

      pip install .
    2. Global installation

      sudo pip install .