conda更新conda的UnsatisfiableError

时间:2018-10-31 08:39:44

标签: conda

尝试使用命令conda update conda从终端更新conda时出现错误。就是说:

Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict:
  - conda
  - conda-canary::conda
Use "conda info <package>" to see the dependencies for each package.

使用conda --version打印出conda 4.5.4并且conda list正在工作。有人可以解决这个问题吗?调查conda安装路径/home/samuel/anaconda3/conda-meta,找不到任何名为pinned的文件。

pathlib2-2.3.2-py36_0.json
path.py-11.0.1-py36_0.json
patsy-0.5.0-py36_0.json
pcre-8.42-h439df22_0.json
pep8-1.7.1-py36_0.json
pexpect-4.5.0-py36_0.json
pickleshare-0.7.4-py36h63277f8_0.json
pillow-5.1.0-py36h3deb7b8_0.json
pip-10.0.1-py36_0.json
pixman-0.34.0-hceecf20_3.json
pkginfo-1.4.2-py36_1.json
pluggy-0.6.0-py36hb689045_0.json
ply-3.11-py36_0.json
prompt_toolkit-1.0.15-py36h17d85b1_0.json
psutil-5.4.5-py36h14c3975_0.json
ptyprocess-0.5.2-py36h69acd42_0.json
py-1.5.3-py36_0.json
pycodestyle-2.4.0-py36_0.json
pycosat-0.6.3-py36h0a5515d_0.json
pycparser-2.18-py36hf9f622e_1.json

1 个答案:

答案 0 :(得分:1)

万一其他人偶然发现此问题,我可以解决此问题,而不必执行以下操作来重新安装anaconda:

首先从固定的包中删除conda-canary

$ conda config --system --remove pinned_packages conda-canary::conda

然后像往常一样更新conda:

$ conda update conda

据我所知,这并没有带来任何意想不到的后果,应该比卸载并重新安装anaconda容易。