如何解决 conda 中不一致的包警告?
How to resolve inconsistent package warnings in conda?
较新版本的 Conda 为用户提供了有关导致与环境冲突的不一致包的更详细信息。我的 conda env 中的一个这样的包是 _nb_ext_conf
,根据 anaconda cloud,它是我系统中安装的最新 0.4.0,即便如此,我在尝试 install/update 模块时收到此警告:
The environment is inconsistent, please check the package plan carefully
The following packages are causing inconsistency:
- defaults/osx-64::_nb_ext_conf==0.4.0=py36_1
无法删除此包,因为 jupyterlab 和笔记本都需要它。我不确定它是否会引起严重的冲突,因为我还没有遇到任何问题,但我仍然想解决这种不一致。有什么办法可以解决吗?我在 github 的 conda 问题部分搜索了类似的问题,但没有遇到任何类似的问题。
运行:
conda install anaconda
可能会解决问题。
如果不行,运行 conda install package_name
对于不一致的包让conda尝试恢复一致性。
否则,运行 conda update --all
您是否尝试过删除导致不一致的包?它对我有用。
另外,我推荐 everything 作为一个很好的搜索工具来查找旧包裹所在的位置。
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:
- conda-forge/win-64::leidenalg==0.8.3=py37h3eba4e7_0
failed with initial frozen solve. Retrying with flexible solve.
删除leidenalg包后,
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
如果您在 Jupyter Notebook 中遇到问题,请尝试在
中更改您的 python 版本
kernel.json
文件,如 this post.
中所建议
较新版本的 Conda 为用户提供了有关导致与环境冲突的不一致包的更详细信息。我的 conda env 中的一个这样的包是 _nb_ext_conf
,根据 anaconda cloud,它是我系统中安装的最新 0.4.0,即便如此,我在尝试 install/update 模块时收到此警告:
The environment is inconsistent, please check the package plan carefully
The following packages are causing inconsistency:
- defaults/osx-64::_nb_ext_conf==0.4.0=py36_1
无法删除此包,因为 jupyterlab 和笔记本都需要它。我不确定它是否会引起严重的冲突,因为我还没有遇到任何问题,但我仍然想解决这种不一致。有什么办法可以解决吗?我在 github 的 conda 问题部分搜索了类似的问题,但没有遇到任何类似的问题。
运行:
conda install anaconda
可能会解决问题。
如果不行,运行 conda install package_name
对于不一致的包让conda尝试恢复一致性。
否则,运行 conda update --all
您是否尝试过删除导致不一致的包?它对我有用。
另外,我推荐 everything 作为一个很好的搜索工具来查找旧包裹所在的位置。
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:
- conda-forge/win-64::leidenalg==0.8.3=py37h3eba4e7_0
failed with initial frozen solve. Retrying with flexible solve.
删除leidenalg包后,
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
如果您在 Jupyter Notebook 中遇到问题,请尝试在
中更改您的 python 版本kernel.json
文件,如 this post.
中所建议