我尝试运行以下代码:
conda install --channel conda-forge pymatgen但我遇到了以下错误:
Collecting package metadata (current_repodata.json): done
Solving environment: |
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:
- defaults/win-64::anaconda==2019.10=py37_0
- defaults/win-64::anaconda-client==1.7.2=py37_0
- defaults/win-64::anaconda-navigator==1.10.0=py37_0
- conda-forge/noarch::anaconda-project==0.8.3=py_0
- defaults/win-64::astropy==3.2.1=py37he774522_0
- conda-forge/noarch::backports.functools_lru_cache==1.6.1=py_0
- defaults/win-64::bleach==3.1.0=py37_0
- defaults/win-64::bokeh==1.3.4=py37_0
- defaults/win-64::clyent==1.2.2=py37_1
.
.
.
...
failed with initial frozen solve. Retrying with flexible solve.你能帮我解决这个错误吗?谢谢
发布于 2020-12-31 18:12:47
在基本环境中安装包不是推荐的策略。最好的解决方案总是用最少的包为每个项目创建环境:
# create environment called awesome with python 3.8 and install package
conda create --name awesome python=3.8
conda install --name awesome --channel conda-forge pymatgen要使用你的软件包,只需激活环境,它就应该可以工作了
conda activate awesome
python -c "import pymatgen"您只需在awesome中安装所需的软件包
# example
conda activate awesome
conda install scikit-learn pandas jupyterlab
# while in awesome env (awesome)
jupyter lab这将打开Jupyter Lab,并提供令人惊叹的软件包。
https://stackoverflow.com/questions/65519075
复制相似问题