conda CondaHTTPError: HTTP 404 NOT FOUND for url

    xiaoxiao2023-10-11  163

    装库时发生的错误信息:

    CondaHTTPError: HTTP 404 NOT FOUND for url https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/noarch/repodata.json 经过查找,有相似经历的网友:https://discuss.gluon.ai/t/topic/10332/3

    开始解决:

    conda config --show-sources #查看当前使用源

    conda config --remove-key channels #换回默认源

    尝试了不行的方法,如下:

    添加中科大源

    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/

    conda config --set show_channel_urls yes

    找到了原因:
    2019-4-29 update: 由于anaconda授权问题,清华源即将关闭
    笔者是在5-25进行安装,所以是清华源挂掉了的原因
    换回默认源:

    conda config --remove-key channels #换回默认源

    执行我想要安装的库:

    conda install -c conda-forge osmnx

    安装成功~!

    最新回复(0)