Python


<< Click to show table of contents >>

Navigation:  Installation > System Requirements > Software Requirements >

Python


Installation instructions for Python

In order to ensure smooth operation with the Python Statements plug-in, some requirements must be met, which are explained below:

 

Contents

1. Download Python installer

2. Configure and install Python

3. Check Python and install needed packages

4. Install Graphviz

 

 

1. Download Python installer

•Download the current Python installation (recommended version: Python 3.10)

 

20250910_info_icon

Information:

The installation instructions are based on Python version 3.9.6, as this was the latest Python version at the time the help file was created.

 

 

2. Configure and install Python

•After downloading the installer, run it by double clicking on the *.EXE file.

•Activate the check box Add Python 3.9 to PATH

•Select Customize installation to continue

python_installer_1

Figure 1 - Python Installer

 

 

•Keep optional features as in default setting

•Click on Next to continue

python_installer_2

Figure 2 - Python installer

 

 

•Select advanced options as shown in the screenshot

oPath for installation should automatically be "C:\Program Files\Python39"

oPath will be needed later in SimAssist

•Click on Install to install Python

python_installer_3

Figure 3 - Python installer

 

 

•After successful installation the option Disable Path length limit can be selected optionally

python_installer_4

Figure 4 - Python installer

 

 

3. Check Python and install needed packages

•Open the command line as administrator and enter the following commands one after the other:

•where python

oshows the path where Python is installed

oshould be "C:\Program Files\Python39"

•python -m pip install --upgrade pip

ochecks the installed Python version and upgrades it if necessary

•pip install -r path\to\requirements.txt

oinstalls all packages that are in the file "requirements.txt"

oThe path to this file must be specified in the command

oExample: pip install -r C:\Users\tobias.semmelmann\Desktop\requirements.txt

 

 

4. Installation of Graphviz

•After successful Python installation the tool Graphviz must be installed for the correct execution of the Python scripts:

•Download depending on your operating system

•choose option Add Graphviz to the system PATH for all users, otherwise use default settings

•Restart PC after installation

•Test in command line: Command: where dot should return result

graphviz_installer

Figure 5 - Check Graphviz installation

 

 

•If the command where dot does not return a result:

•Either reinstall Graphviz

•Or "This PC" -> right click -> Properties -> Advanced System Settings -> Advanced -> Environment Variables -> System Variables -> Path -> Edit -> New

    -> Add "C:\Program Files\Graphviz\bin" (use installation path) -> Restart PC

graphviz_installer_1

Figure 6 - Check Graphviz installation

 

 

After all steps have been successfully completed, the Python Statements plug-in is ready to use.

 

 


© SimPlan AG - Hanau District Court, Commercial Register (Part B) 6845 - info@simplan.de - www.simplan.de/en