FV Python Install

From TUFLOW FV Wiki
Jump to navigation Jump to search

Python download and setup

Please note this page has been superseeded by the new TUFLOW FV Python Toolbox page.

Install Python

Download and install

There is a range of options for installing Python on your computer. You can either download through a package (such as Anaconda) or directly download from the Python Website. For this example we will install the basic python installation from the Python Website and then install further modules using pip. For further information about Anaconda please refer to https://www.anaconda.com/.

To install Python please visit the Python Website (https://www.python.org/downloads/release/python-371/) and download the most recent executable python download file for windows. Run the installation.

On Windows 10 by default this is installed in C:\Users\XXXX\AppData\Local\Programs\Python\Python37 Where XXXX is your user profile name.

Update System Paths

Once installed, check that python 3.7.1 is on your path by opening a dos prompt and typing python. You should get the same result as below. This is the python interpreter.

PythonSysPaths 2.JPG

If you receive this result, you have Python 3.7.1 on your path and can continue to Install Dependencies for Plotting. If not, then please follow the steps below:

From the start menu navigate to system properties:


System properties.png

This will take you to Control Panel > System and Security > System. From here, please go to Advanced system settings as per the below:

Adv sys settings.png

This will take you System Properties. From here, please go to Environment Variables and edit the path environment variable as per the below:

System properties P2.png Edit path env variable 2.png

From the Edit environment variable window, add a path to your Python.exe directory as per the below. On Windows 10, this will be %USERPROFILE%\AppData\Local\Programs\Python\Python37. Additionally, use the Move Up button to reorder the latest 'Python37' directory above any pre-existing python install locations.

Path env var python 2.png

This will permanently set your paths. If you have command windows open (dos prompt) you will need close and open new ones for the changes to go through.


For further information about Anaconda please refer to https://www.anaconda.com/.

Please follow this link if you wish to go back to the Python Tools page.