Can't create new environments, with CondaVerificationError: The package for ncurses is corrupted

会有一股神秘感。 提交于 2020-02-15 10:19:55

问题


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.

Any suggestions?

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

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


回答1:


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

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

conda install ncurses=6.1=h0a44026_0

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.




回答2:


It looks like ncurses package was just broken (6.1-h0a44026_0), the current version seems to work



来源:https://stackoverflow.com/questions/52654316/cant-create-new-environments-with-condaverificationerror-the-package-for-ncur

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!