QGIS Intallation with OSGeo4W
Installation Steps
- Download OSGeo4W setup installer
- Run the downloaded EXE
- Select Advanced Install
- Select Install from Internet
- Select a directory and other installation options (Note some options may require admininstrator rights)
- Click Next
- Select Direct Connection (Note some firewall systems will require proxy settings)
- Select a download site. It is recommended to use with one with an SSL certificate (i.e. starts with https://)
- Use the search bar to search for "QGIS". Expand the Desktop dropdown and find "qgis: QGIS Desktop" under the package column. Left-click the "skip" text and the text will change to the latest version number. Once the verseion number is showing, this will be the version installed when you proceed. If you left-click again, the version number may change again to the previous version. If you keep left-clicking it will cycle back to "skip". (Note: you could also choose the "qgis-ltr: QGIS Desktop (long term release)" instead, and this would install the long term release version).
- The installation also requires manually choosing several Python libraries. Use the search bar again and search for "scipy". Expand the Libs dropdown and find "python3-scipy". Left-click the "skip" text once to choose the latest scipy library version.
- Repeat the above step for the following Python Libraries:
- matplotlib
- netcdf4
- pandas (this may return 2 options - make sure to select "python3-pandas" (not "python3-geopandas" - it is ok to install this, but just make sure you install plain "pandas"))
- Click Next
- Continue to work through the steps of the installation process - the installer will ask you to also install a number of dependencies (make sure to click yes to these) and prompt for license agreements
- Once installed, QGIS should be installed in the location specified in an earlier step
Upgrading Steps
- As part of the installation, OSGeo4W should install a program called "setup" which you can search in the Windows start bar. You can also run the downloaded OSGeo4W installer again (they are the same).
- Once running the setup, simply continue clicking Next. The setup should remember all your previous settings and automatically choose the latest version of the installed libraries at the Packages Selection stage of the installation
Upgrading Silently
It's possible to upgrade silently from the Windows CMD prompt or from a batch file.
From CMD
- Search "osgeo4w" in the Windows start bar and choose OSGeo4W Shell
- Type the following command and press enter
setup -q -g
- "-q" : quiet installation flag
- "-g" : upgrade installed packages flag