2.3.3 Installing OSI for Python on Linux
2.3.3.1 Installing from PyPI
- Steps
-
-
Open a terminal.
-
Optionally create and activate a new virtual environment.
python3 -m venv venv source venv/bin/activate
-
Install Open Simulation Interface.
pip install open-simulation-interface
-
2.3.3.2 Installing from source
- *Prerequisites
-
-
You have installed everything described in Section 2.3.1, "Installing protobuf for static / dynamic linking".
-
You have installed pip.
-
- Steps
-
-
Open a terminal.
-
Clone the Open Simulation repository.
git clone https://github.com/OpenSimulationInterface/open-simulation-interface.git
-
Switch to the repository directory.
cd open-simulation-interface
-
Optionally create and activate a new virtual environment.
python3 -m venv venv source venv/bin/activate
-
Install Open Simulation Interface.
-
Local installation
pip install .
-
Global installation
sudo pip install .
-
-