【问题标题】:Can't create new environments, with CondaVerificationError: The package for ncurses is corrupted无法使用 CondaVerificationError 创建新环境:ncurses 的包已损坏
【发布时间】:2018-10-04 20:00:55
【问题描述】:

我在尝试创建新环境时遇到此错误。浏览器

conda create -n jupyter python=3.6 -y

Preparing transaction: done
Verifying transaction: failed

CondaVerificationError: The package for ncurses located at /Users/yaroslavvb/anaconda3/pkgs/ncurses-6.1-h0a44026_0
appears to be corrupted. The path 'share/terminfo/69/iTerm.app'
specified in the package manifest cannot be found.

CondaVerificationError: The package for ncurses located at /Users/yaroslavvb/anaconda3/pkgs/ncurses-6.1-h0a44026_0
appears to be corrupted. The path 'share/terminfo/69/iTerm2.app'
specified in the package manifest cannot be found.

有什么建议吗?

我尝试了以下事情但没有成功(conda 4.5.11)

conda update -n base conda
conda update conda
conda install -f conda
conda install -f ncurses -y
conda update ncurses
conda uninstall ncurses -y

我经常使用 ITerms,我怀疑 iterm 自动更新并破坏了一些路径

【问题讨论】:

标签: conda miniconda


【解决方案1】:

我今天也遇到了和你类似的问题。这是我的解决方案: 由于它显示在此包中找不到某些内容,并且我们无法使用 conda uninstall ncurses 命令卸载 ncurses,因此我只是手动删除了此包: (在你的情况下,应该如下)

rm -r /Users/yaroslavvb/anaconda3/pkgs/ncurses-6.1-h0a44026_0

然后我们可以安装 ncurses 并指定它的版本并构建我们刚刚删除的:

conda install ncurses=6.1=h0a44026_0

顺便说一句,我的错误信息指向/path/to/miniconda2/pkgs/ncurses-6.1-hf484d3e_1002,所以我只是删除了这个文件夹并用稍微修改的命令重新安装它。

【讨论】:

    【解决方案2】:

    看起来 ncurses 包刚刚损坏(6.1-h0a44026_0),当前版本似乎可以工作

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-02-13
      • 1970-01-01
      • 2022-10-23
      • 2020-07-02
      • 2019-05-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多