Skip to content

Latest commit

 

History

History
106 lines (80 loc) · 3.89 KB

install_windows.md

File metadata and controls

106 lines (80 loc) · 3.89 KB

Installation guide for Windows users

Here is a nice installation tutorial for Windows users.

Note: read all the steps before executing them! You may anticipate some issues.

1) Download Python

Go to https://www.python.org/ and download the latest version of Python 3;

Note: unless you have good reasons to keep it, we encourage you to first uninstall older Python versions to prevent problems.

2) Install Python

Double-click the installation file to launch the installation wizard. Then enable the option:

[x] Add Python 3.x to PATH (where x is the number of version)

Example:

addpath

Click Install Now and follow through the installation steps in the wizard:

install

3) Install the required dependencies

Here the safest way is to open the Windows Command Prompt program and type some installation commands in sequence.

If you are already using Python, you may want to upgrade pip (the package manager) to the latest version by typing:

python -m pip install --upgrade pip

The installation command is the same except the name of the dependency. So the numpy installation command will look like this:

python -m pip install numpy

Then scipy installation:

python -m pip install scipy

Then pandas installation:

python -m pip install pandas

Then matplotlib installation:

python -m pip install matplotlib

Then imageio installation:

python -m pip install imageio

It would look like this:

pip install

4) Download (clone) the latest release source code

First, open the source code releases repository in your web browser: https://github.com/ipo-exe/abm-cue/releases. Then in the tab Assets of the latest release, download the ZIP folder of the source code.

After completed download, extract the folder to a location of your preference in your disk. Example: C:/Users/You/Documents/abm-cue-main

Warning: do not change any files and subfolders from the repository.

5) Execute the application file

The application file for the 1-d CUE model is the app_cue1d.py file. The same logic applies to the 2-D CUE model file (app_cue2d.py).

5.1) Executing by double-clicking

The easiest way to execute the app is double-click the app file. If everything is OK, Windows should launch the Graphical User Interface of the application.

However, things can be not OK for several reasons and after double-clicking the app will launch and crash due to some system error. This will be the case if you have some other software previously installed with an older version of Python set as the default PATH for Windows.

5.2) Executing via Command Prompt

The safest way to execute the app is via Command Prompt. First, make sure you know the system path to the app file. For instance, let the path be C:/Users/You/Documents/abm-cue-main/app_cue1d.py. Then open the Command Prompt and type:

python C:/Users/You/Documents/abm-cue-main/app_cue1d.py

It would look like this:

app

5.3) Executing via IDLE or third-party IDEs

Alternatively, you may open and execute the app file from the script editor IDLE that was installed with Python or third-party IDEs such as PyCharm, Sublime, etc.

This is the unsafest way to execute the app file since you might commit unwanted detrimental changes to the source code. One advantage, tough, is that if you are dealing with execution issues you may inform yourself about the error types returned from the system.