无法创建新环境,出现 CondaVerificationError:ncurses 包已损坏

Yar*_*tov 5 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.
Run Code Online (Sandbox Code Playgroud)

有什么建议?

我尝试了以下操作但没有成功(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
Run Code Online (Sandbox Code Playgroud)

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

Hey*_*u L 7

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

rm -r /Users/yaroslavvb/anaconda3/pkgs/ncurses-6.1-h0a44026_0
Run Code Online (Sandbox Code Playgroud)

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

conda install ncurses=6.1=h0a44026_0
Run Code Online (Sandbox Code Playgroud)

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