本文主要是介绍PackagesNotFoundError:学习利用报错信息找到解决方法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
反思:之前看到报错经常是直接复制报错信息去网上搜,但很多情况下报错信息里其实就给出了解决方案
报错信息:
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.PackagesNotFoundError: The following packages are not available from current channels:- orderedsetCurrent channels:- https://repo.anaconda.com/pkgs/main/linux-64- https://repo.anaconda.com/pkgs/main/noarch- https://repo.anaconda.com/pkgs/r/linux-64- https://repo.anaconda.com/pkgs/r/noarchTo search for alternate channels that may provide the conda package you're
looking for, navigate tohttps://anaconda.organd use the search bar at the top of the page.
报错信息提示:
为搜索你所要寻找的conda库的替换渠道,导航至https://anaconda.org,并在页面顶部的搜索栏搜索。
我要找的包是orderedset,如下图:
划到页面最底部,有conda install的命令,安装即可。
这篇关于PackagesNotFoundError:学习利用报错信息找到解决方法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!