# Miniconda

First download and install Miniconda from <https://docs.conda.io/en/latest/miniconda.html>. It is important to ensure that you download the Miniconda3 Windows 64-bit version. You may need to check which version of Python is supported by the PCRaster. Here we use py310 64-bit version. It is not mandatory to change the destination folder for Miniconda but we prefer to install it in ‘C:\Miniconda’. Note you need to create the Miniconda folder (see below).

<figure><img src="https://2432255304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbpkOf6MyIYzEi0TyV0In%2Fuploads%2FvwE6wj6mU5Bn7WRhP1GA%2Fafbeelding.png?alt=media&#x26;token=0c81313d-4d50-4c61-808d-2e113a47d3a3" alt=""><figcaption><p>Figure 15: Installation of Miniconda</p></figcaption></figure>

After Miniconda installation check if the following paths have been added to the system environment. If paths were not added then add the followings to the ‘Path’ in system environment variables

C:\Miniconda\Scripts

C:\Miniconda

C:\Miniconda \Library\bin

To add this path, open control panel and search for ‘edit the system environment variables’ (see below).

![Figure 16: Finding the environment variable.](https://2432255304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbpkOf6MyIYzEi0TyV0In%2Fuploads%2FOED6cOQNHbWazXEaGNri%2F19.png?alt=media)

A new window will popup. Click on Environment variables.

![Figure 17: Setting the Path variable.](https://2432255304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbpkOf6MyIYzEi0TyV0In%2Fuploads%2F23RQ6MxRoKMNbw5YvvZy%2F20.png?alt=media)

In the System variables tab click on Path and edit it.

<figure><img src="https://2432255304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbpkOf6MyIYzEi0TyV0In%2Fuploads%2Frb8Foyi7mGzblVil7iYm%2Fafbeelding.png?alt=media&#x26;token=e0dfe6a9-c65e-4a84-8b8b-01ff3bd118d9" alt=""><figcaption><p>Figure 18: Copying the path.</p></figcaption></figure>

Open command prompt by typing ‘cmd’ in search bar of windows. A command prompt will open. Type ‘conda’ and it will populate the command prompt screen with the following commands.

<figure><img src="https://2432255304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbpkOf6MyIYzEi0TyV0In%2Fuploads%2FP0UXuWmehfGtOr8Oa6xM%2Fafbeelding.png?alt=media&#x26;token=e6ff0e61-5590-44b8-89c7-0b18c9d4cea8" alt=""><figcaption><p>Figure 19: Checking if conda works.</p></figcaption></figure>

From the command prompt type ‘activate C:\Miniconda’

To run SPHYv3.1 several packages need to be installed so we need to install the specific version of Python and the other dependent packages. This process takes a bit of time. Type:

*conda create --name pcraster -c conda-forge python pcraster spyder matplotlib pandas netCDF4 scipy pyproj*

Add additional packages (if needed):

*conda install --name pcraster -c conda-forge pandas*
