# Installation

## 1. Install QGIS 3

If you plan to use QSWAT+ to set up your watershed, please install QGIS 3 before installing SWAT+. It can be downloaded from the [QGIS download page](https://www.qgis.org/en/site/forusers/download.html), where you should select the **Long term release repository**, and the **64 bit standalone installer**. Use the default folder C:\Program Files\QGIS 3.4 as the installation folder. See the [QSWAT+ manual](https://swatplus.gitbook.io/docs/1.2.3/user/qswat+) for further instructions.

**Please note you must use QGIS version 3, not version 2.**

## 2. SWAT+ Tools Installer

To install the SWAT+ model and interface components, please use the installer linked below. The installer is for 64-bit Windows machines. Administrator privileges are not required, however you must have access to your C drive.

{% hint style="info" %}

### [**Download SWAT+ Installer 1.2**.3](https://plus.swat.tamu.edu/downloads/swatplustools-installer-1.2.3.zip)

Windows 64 bit\
Includes SWAT+ rev. 59.3, QSWAT+ 1.2.2, SWAT+ Editor 1.2.3, and SWAT+ databases\
[Release notes](https://swatplus.gitbook.io/docs/1.2.3/release-notes)
{% endhint %}

Upon opening the installer, you will be presented with a screen asking which components you would like to install. The soils and weather generator databases will be downloaded in the next screen if checked.

![](https://48022380-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZjucbsiRtOOGctS4q0%2F-LijE-qRBFWAZpiMkgs0%2F-LijE1Yt8ZLQBP1ZfAXi%2Ftools-installer-1.2.0.PNG?alt=media\&token=e689ceda-e76b-4c67-8a28-2681ce6c3b45)

If QSWAT+ and SWAT+ Editor are selected, their individual installers will open next.

## SWAT+ Model (Command Line Executable)

The model itself is packaged with SWAT+ Editor and we recommend using the editor to modify your inputs and run the model. However, if you would like to download just the command line executable file, it is available below.

### Windows 64 bit

{% file src="<https://48022380-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZjucbsiRtOOGctS4q0%2F-LijE-qRBFWAZpiMkgs0%2F-LijF1HHa2kRXBUKY_SC%2Fswatplus_exe_rev59_3.zip?alt=media&token=0ac092a2-b83d-413e-aeb1-8b84a5dc6a0c>" %}
Windows SWAT+ rev. 59.3 executable
{% endfile %}

### Linux 64 bit

{% file src="<https://48022380-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZjucbsiRtOOGctS4q0%2F-LizLSkSM8QSZ_DLS2Pp%2F-LizM0ZfMhpRNdIycs-I%2Fswatplusrev59-static.zip?alt=media&token=2ddac7a5-bad1-4eae-8ab8-d689c68ce74e>" %}
Linux SWAT+ rev. 59.3 (static)
{% endfile %}

{% file src="<https://48022380-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZjucbsiRtOOGctS4q0%2F-LizLSkSM8QSZ_DLS2Pp%2F-LizM6OSrVxWADxBy5r3%2Fswatplusrev59.zip?alt=media&token=a88c6dc5-0c72-456e-a3a5-770409cea044>" %}
Linux SWAT+ rev. 59.3 (dynamic)
{% endfile %}

{% hint style="info" %}
Note: the QSWAT+ and SWAT+ Editor available above require a Windows machine. However, we plan to compile for Linux at a later time. Please contact us if you need this.
{% endhint %}

## SWAT+ SQLite Datasets

We recommend using the SWAT+ Tools installer above for installing the SWAT+ datasets databases to their proper locations. However, if you need to access these components individually, they are linked below:

* [SWAT+ datasets](https://bitbucket.org/swatplus/swatplus.editor/downloads/swatplus_datasets.sqlite)
* [SWAT+ global weather generator data](https://bitbucket.org/swatplus/swatplus.editor/downloads/swatplus_wgn.sqlite)
* [SWAT+ US SSURGO/STATSGO soil data](https://bitbucket.org/swatplus/swatplus.editor/downloads/swatplus_soils.sqlite)

These files should be placed in `C:\SWAT\SWATPlus\Databases`
