janboone / applied-economics

course material for the course applied economics
17 stars 21 forks source link

Conda not able to download packages (geopandas) #51

Closed 211sk closed 2 years ago

211sk commented 2 years ago

I am having a similar issue to this - https://github.com/conda-forge/geopandas-feedstock/issues/82

I have been trying to install geopandas on my conda, but it has been running for quite a few minutes with no response.

The code I used was - conda install geopandas but I also tried with pip install geopandas

janboone commented 2 years ago

As the issue suggests the problem is that the latest python version causes problems when installing geopandas. The solution they mention is to create a new python environment with an earlier python version. Creating a new python environment with conda and specifying the python version you want to use is described here: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands

You can call this new environment 'geo'. Then in jupyterlab you can switch your kernel to 'geo'. Note that the new environment is different from the default one. That is, you need to reinstall packages that are already available in your default environment, but not in the 'geo' environment. So do not panick if you suddenly see that a package is not available in 'geo'.

211sk commented 2 years ago

Thank you so much! I will try this out!