我试图使用以下命令更新conda:
~$ conda update conda
Run Code Online (Sandbox Code Playgroud)
它输出以下消息:
WARNING conda.base.context:use_only_tar_bz2(632): Conda is constrained to only
using the old .tar.bz2 file format because you have conda-build installed,
and it is <3.18.3. Update or remove conda-build to get smaller downloads
and faster extractions.
Collecting package metadata (repodata.json): done
Solving environment: -
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:
- defaults/linux-64::cytoolz==0.9.0.1=py37h14c3975_1
- and around 100 more
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
ERROR conda.core.link:_execute(637): An error occurred while installing
package 'None'.
AssertionError()
Attempting to roll back.
Rolling back transaction: done
AssertionError()
Run Code Online (Sandbox Code Playgroud)
我也尝试过
~$ conda update --all
Run Code Online (Sandbox Code Playgroud)
但是它给了我和以前一样的错误。
关于这个问题,我发现一个解决方案虽然没有很好的解释,但是可以解决问题:
首先:使用命令:
~$ conda install anaconda
Run Code Online (Sandbox Code Playgroud)
这样就解决了环境不一致的问题。
第二:使用命令:
~$ conda update conda
Run Code Online (Sandbox Code Playgroud)
该命令将毫无问题地执行,并且conda将会被更新。
| 归档时间: |
|
| 查看次数: |
1773 次 |
| 最近记录: |