Installation
============
Step 1: Python
----------------
GRID is developed in **Python 3**.
Follow the `official instruction `_
to set up Python.
Step 2: Rasterio (Windows Users)
---------------------------------
The easiest way to install Rasterio in Windows is to build it from binaries
`(Official instruction) `_.
Please download correct versions of ``.whl`` from
`Rasterio `_ and
`GDAL `_, and use ``pip``` to install them.
For example, if you want to run GRID in **64-bit** Windows 10 using Python **3.9**,
the ``.whl`` names and the commands should be:
.. prompt:: bash
python -m pip install GDAL-3.4.3-cp39-cp39-win_amd64.whl
python -m pip install rasterio-1.2.10-cp39-cp39-win_amd64.whl
Step 2: Rasterio (Other Users)
---------------------------------
`Rasterio `_
is the only GRID dependency that can't be installed via
`PyPI `_.
Below are the alternatives:
* **Anaconda (Recommended)**
Install Anaconda `here `_,
and run the following commands in **Anaconda Prompt**:
.. prompt:: bash
conda config --add channels conda-forge
conda install rasterio
* `Install from binaries `_
* `Install from the source distribution `_
Step 3: Install GRID via PyPI
--------------------------------
Finally, to install GRID, in the prompt
(or Anaconda Prompts if you installed Rasterio via Anaconda):
.. prompt:: bash
python -m pip install photo_grid
After finishing this step, you should be good to go.
Otherwise, check what dependencies you miss or report any issue to
the `GitHub repository `_ .
.. NOTE::
If your system can't find the command ``pip``,
follow the `link `_
to install it.