美文网首页
An unexpected error has occurred

An unexpected error has occurred

作者: Z_bioinfo | 来源:发表于2022-07-20 21:23 被阅读0次

    conda安装软件时出现

    Collecting package metadata (current_repodata.json): failed
    ...
    An unexpected error has occurred. Conda has prepared the above report.
    
    If submitted, this report will be used by core maintainers to improve
    future releases of conda.
    Would you like conda to send this report to the core maintainers?
    

    如果有重装过anaconda,在根目录下,会有一个名叫.condarc的文件会自动生成。
    当使用conda install和conda create命令会出现下面的问题:Collecting package metadata (current_repodata.json): failed


    image.png

    解决方案:

    1.输入下面命令

    conda config --show-sources
    

    如图所示,运行结果显示.condarc文件在~/.condarc文件夹内


    image.png

    2.删除.condarc文件

    rm -rf ~/.condarc
    

    相关文章

      网友评论

          本文标题:An unexpected error has occurred

          本文链接:https://www.haomeiwen.com/subject/fweyirtx.html