0%

记录anaconda各种奇怪的错误

The environment is inconsistent, please check the package plan carefully

错误信息:运行 conda create -n xxx python==3.7 时,遇到如下错误。

The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:
  - defaults/linux-64::anaconda==2019.03=py37_0
  - defaults/linux-64::numba==0.43.1=py37h962f231_0

分析原因:可能是因为之前运行了 conda clean -t,想要删除一些过期的包,导致一些包产生了不一致性。

解决办法:运行 conda clean --all 删除所有索引缓存、lock files、未使用的缓存包和 tarballs。删除之后,再执行命令就可以了。