本文介绍了使用CondaVerificationError无法创建新环境:ncurses的程序包已损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm getting this error when trying to create new environment. 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)

I tried the following things with no success (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会自动更新并打破了某些路径

I'm using ITerms on a regular basis, my suspicion is that iterm auto-updated itself and broke some paths

推荐答案

我今天也遇到了与您类似的问题。这是我的解决方案:
如它所示,在此软件包中找不到某些内容,我们无法使用 conda卸载 ncurses 命令,我只是手动删除了此软件包:
(根据您的情况,应如下所示)

I also ran into a similar problem as yours today. Here is my solution:As it showed something cannot be found in this package, and we can't uninstall ncurses using conda uninstall ncurses command, I just removed this package manually:(In your situation, it should be as following)

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

,然后我们可以安装 ncurses 并指定其版本和我们刚刚删除的版本:

and then we can install ncurses with specifying it's version and build which we just removed:

conda install ncurses=6.1=h0a44026_0

顺便说一句,我的错误信息指向 /path/to/miniconda2/pkgs/ncurses-6.1-hf484d3e_1002 ,所以我只是删除了该文件夹并重新安装

By the way, my error information pointed to /path/to/miniconda2/pkgs/ncurses-6.1-hf484d3e_1002, so I just removed this folder and reinstall it with a slightly modified command.

这篇关于使用CondaVerificationError无法创建新环境:ncurses的程序包已损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 19:47