Installation

Source Code

The source code for TerraRoad can be downloaded from https://github.com/abe-mart/TerraRoad.

Installation

To use TerraRoad, you'll need Python installed on your computer. On Windows, Python can be obtained easily through the Microsoft Store, or for Windows, Mac, and Linux from python.org. Make sure to check 'Add Python to Path' if installing manually.

Once Python is installed, open the command prompt (not IDLE) and use the Python package manager pip to install the packages needed to run TerraRoad.

pip install pysimplegui imageio numpy scipy scikit-image svgpathtools

NOTE: The ImageIO library needs an additional plugin called freeimage to read EXR files. I'll try to add an automatic check into the code for that. Until then, you can run this code in a Python interpreter to download the plugin:

import imageio
imageio.plugins.freeimage.download()

Now you are ready to download TerraRoad. TerraRoad is contained in a single Python script, TerraRoad.py, which you can download by clicking the green 'Code' button at the GitHub site, and then 'Download ZIP'. Unzip the folder, and navigate to the unzipped folder in your command prompt. Launch TerraRoad by running:

python TerraRoad.py

You can also run TerraRoad through IDLE or your favorite Python IDE.

Last updated