Before installing EV-Fleet-Sim, you will need to install various software that EV-Fleet-Sim depends on.
Note: Version numbers are just the ones that I tested the program with. Other versions may also work. But many packages and software introduce breaking changes between releases. So be aware of that.
Note: Packages marked with a
*are mandatory. The other packages are recommended, but the software may work without them. Packages marked with a
+are conditionally required. I.e., they are only required if performing specific tasks. However, they are highly recommended.
Please install the following software before installing
EV-Fleet-Sim. Install all the software with their default settings, except for Python on Windows.
NB: Please install the correct versions of the software. Especially for SUMO and Python.
|Traffic mobility simulator. Once installed, make sure that the SUMO_HOME environment variable exists.2
|An awesome, easy-to-learn programming language named after a dangerous snake. Windows users: Make sure you tick the “Add Python to PATH” checkbox during installation!!!3
|A tool to collaborate on coding projects and track changes that we make.
|The terminal which comes with Linux and MacOS. Windows can emulate Bash using Git Bash. It will be automatically installed when you install Git.
|Simulator of Renewable-Energy Generators (Solar panels, wind-turbines, etc.).
|R programming language. Only compulsory if you plan on running scenarios which use GTFS data.
|Software for cropping OpenStreetMap files. Compulsory on Linux and MacOS.
|Alternative software for cropping OpenStreetMap files. Compulsory on Windows.
|Software used for overlaying NASA elevation data onto the OpenStreetMap files. Required if you want to consider elevation in the electric vehicle models of EV-Fleet-Sim.
|+Microsoft Build Tools for C++
|Only compulsory on Windows. Used for compiling some Python packages.
When compiling SUMO on Linux, you will need to install the following dependencies:
When you install EV-Fleet-Sim with Pip, it will automatically install all the dependencies with their correct versions.
|Converts GTFS public transport data to GPS traces.
Once you’ve installed the dependencies, you can install EV-Fleet-Sim using the command:
pip install ev-fleet-sim
GIT Bash terminal.
Simply run the command
python -m venv <venv-path>, where
<venv-path> is the path where you would like to save your virtual environment. Unfortunately, you will need to activate the virtual environment every time you want to run EV-Fleet-Sim. Do this by running one of the following commands, depending on your platform:
|Command to activate virtual environment
After you have activated the venv, you can install ev-fleet-sim into it with
pip install ev-fleet-sim.
You can deactivate your virtual environment using the
Unfortunately, Windows’ search indexer slows down ev-fleet-sim drastically. In order to circumvent this, perform the following steps:
Indexing Options from the start menu.
File Types tab.
xml filetypes in the list.
Add button at the bottom of the window.
Rebuild Index window pops up, press
Indexing Options window.
Make sure that libsumo is compiled with SUMO. The Ubuntu PPA does not include it by default. Libsumo is required by Step 4 (Routing). The other steps will work without libsumo. I think the Windows binaries released by sumo are compiled together with libsumo. ↩
See: SUMO docs.
In MacOS, if you installed SUMO using Homebrew, the base directory of
the SUMO installation is: