Geopandas is an amazing library for spatial analysis since in combines the spatial tools from Shapely and Fiona with the versatily of Pandas Dataframes. We are aware that most geoscientists, water resources specialists and related professionals work on Windows, therefore we are always in the search of new ways to get Python working with all its geospatial capabilities in every computer. We have created a tutorial that shows the installation process of Geopandas and other Python geospatial libraries in Windows by the use of a Conda environment.
Create a environment called “geohatarilabs”:
conda create –name geohatarilabs
Activate the new environment:
conda activate geohatarilabs
Install all the geospatial libraries together with jupyterlab and pandas. This is the step where you have to add additional packages to ensure compatibility.
conda install -c conda-forge fiona python=3.9 fiona shapely rasterio pyproj pandas jupyterlab geopandas
There are two ways to run jupyter lab
python -m jupyterlab
When you want to get out of the environment:
If you want to remove the environment:
conda env remove –name geohatarilabs
List all remaining environments:
conda env list
To test your installation of geopandas please download and run the scripts on this link.