使用CondaVerificationError无法创建新环境:ncurses的程序包已损坏

时间:2018-10-04 20:00:55

标签: conda miniconda

尝试创建新环境时出现此错误。 IE浏览器

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会自动更新并破坏了一些路径

2 个答案:

答案 0 :(得分:1)

我今天也遇到了与您类似的问题。这是我的解决方案: 由于它显示在此软件包中找不到某些内容,并且我们无法使用ncurses命令卸载conda uninstall 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,所以我只是删除了该文件夹,然后使用稍有修改的命令将其重新安装。

答案 1 :(得分:0)

ncurses软件包似乎已损坏(6.1-h0a44026_0),当前版本似乎可以正常工作

相关问题