Closed ahmadsadeed closed 4 years ago
@ahmadsadeed The steps you took seem fully correct, and what we recommend, so normally that should work. How long did you let conda run? (it is known that the "solving" step can be very slow, taking several minutes)
One option that could help (although it should normally not be needed), is to pin down some more package versions, so that the solver has less work (like geopandas=0.7.0 pandas=1.0.3
).
Maybe you can also try to first already install some of the dependencies (eg start with a conda install python=3.8 pandas matplotlib shapely
)
Another option is to try mamba
(https://github.com/QuantStack/mamba): you can do conda install mamba -c conda-forge
in the base environment, and then after switching to the new "top" environment, you can do mamba install python=3.8 geopandas
(so just switch "conda" with "mamba" for the install command)
It seems like the issue is with installing any package. I had to ctrl+z after letting it run for more than 20 minutes.
(base) sadeed@Ahmads-MacBook-Pro:~$ conda install mamba -c conda-forge
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: / ^Z
I am not able to replicate the issue on my Mac. It takes about a minute to resolve. Might be some issue with conda on your machine.
Thanks. I will see if I can get some ideas from the Conda community.
This comment solved my issue. I had to create a new env with lower python version.
Good to hear it's solved! (it would still be nice that conda can give an error message instead of keep solving, though ...)
This comment solved my issue. I had to create a new env with lower python version.
conda/conda#9367 (comment)
Thanks @ahmadsadeed! The comment really solved this issue. A new env with a lower version of python, e.g. python 3.7, should work.
This is still an issue, I was not able to install it even on a fresh conda env. Any tips?
Sometimes conda
struggles to resolve an environment. I would recommend checking the mamba
project. mamba
is designed as a drop-in replacement of conda and is much faster in solving.
Issue: I have tried multiple ways but can't install geopandas package. I tried geopandas install guide, but get output that runs forever. I tried without creating an environment, after creating a new environment, using defaults channel and using conda-forge channel. None worked. I tried removing anaconda completely and reinstalled.
I don't want to use
pip install
because it is preferred to useconda install
. Also I tried installing using Anaconda Navigator following this answer, but the progress bar keeps running saying solving package specifications.Environment (
conda list
):Details about
conda
and system (conda info
):