问题
I have tried multiple ways but can't install packages (in my case, geopandas). 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.
$ conda create -n top
$ conda activate top
$ conda config --env --add channels conda-forge
$ conda config --env --set channel_priority strict
$ conda install python=3 geopandas
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: \
I don't want to use pip install
because it is preferred to use conda install
.
Also I tried installing using Anaconda Navigator following this answer, but the progress bar keeps running saying solving package specifications.
回答1:
After trying many advice from Conda's GitHub page, I found out that the issue was not being able to find dependencies for the python version I had installed. Creating new environment help but with one more argument for python version.
conda create -n branch-env python=3.7
conda activate branch-env
conda install geopandas
来源:https://stackoverflow.com/questions/61927004/conda-install-some-package-hangs-with-solving-environment-failed