以下是指什么错误怎么解决给出解决代码Retrieving notices working doneCollecting package metadata current_repodatajson failed# ERROR REPORT Traceback most recent call last File optcondalibpython310site-packagesc
错误原因:conda在从https://conda.anaconda.org/rapidsai/linux-64/获取包的元数据时返回404错误。
解决方法:检查网络连接是否正常,或者更换镜像源。
更换镜像源的方法:
-
打开Anaconda Prompt或终端。
-
输入以下命令更换镜像源:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --set show_channel_urls yes或者
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ conda config --set show_channel_urls yes -
输入
conda clean -i清空缓存。 -
重新运行命令安装包。
解决代码:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
conda clean -i
conda install --yes --prefix /opt/conda ppcls
``
原文地址: https://www.cveoy.top/t/topic/hedk 著作权归作者所有。请勿转载和采集!