1

Can not install geopandas with in python 3.7. Always this error pops up:

Problem

Problem in anaconda Please help!

aloha_erich
  • 133
  • 8
tahmid0945
  • 95
  • 2
  • 11
  • 1
    Refer to this. [Error installing geopandas:“ A GDAL API version must be specified ” in Anaconda](https://stackoverflow.com/questions/54734667/error-installing-geopandas-a-gdal-api-version-must-be-specified-in-anaconda) – paul-shuvo Jun 25 '20 at 00:38
  • 1
    Does this answer your question? [Error installing geopandas:" A GDAL API version must be specified " in Anaconda](https://stackoverflow.com/questions/54734667/error-installing-geopandas-a-gdal-api-version-must-be-specified-in-anaconda) – paul-shuvo Jun 25 '20 at 00:38
  • 1
    I wouldn't ever install geopandas and its dependencies into the base environment. IMO, you should keep `base` very clean and simple, and install everything in other, project-specific environments – Paul H Jun 25 '20 at 21:32
  • I am also using 3.7 version and had same problem with you. What I did was update conda to version 22.9.0 using this command conda install -n base conda=22.9.0, then update geopandas using conda install -c conda-forge geopandas. Hope its ok for your case. – Azam Jun 05 '23 at 03:59

1 Answers1

2

First, based on Geopandas documentations, they recommend to use conda package manager.

Secondly, Geopandas relies on other packages and their installations is required. In order to install all the dependencies and the package itself, you can run the following command, given you are using conda package manager:

conda install --channel conda-forge geopandas

Rob
  • 241
  • 1
  • 14
  • 1
    Thanks for the answer. I tried conda package manager but still not working. Not only geopadas, also fiona, gdal these packages are not installing. What can i do in this context? – tahmid0945 Jun 25 '20 at 01:42
  • 1
    Please update your question with the error you get when you run with conda. – Rob Jun 25 '20 at 01:57
  • 1
    @AhmedTahmidRaihan your Anaconda screenshot doesn't show any error, it only shows it is still "solving" the environment (=figuring out which packages need to be installed) – joris Jun 25 '20 at 07:50
  • 1
    @Joris it does not solve at the end, it takes about an hour to run the solve and ultimately it does not install – tahmid0945 Jun 25 '20 at 09:11
  • 3
    Can you try to instructions in the installation docs to create an new environment and see if that works? https://geopandas.org/install.html#creating-a-new-environment – joris Jun 25 '20 at 13:35
  • @joris, now the installation is working. Thanks a lot! :) – tahmid0945 Jun 25 '20 at 21:44