Conda在下載安裝包時報錯:
PackagesNotFoundError: The following packages are not available from current channels:- XXXXXX(包名)
有如下兩種解決方法:
方法一:將conda-forge添加到搜索路徑上
? ? ? ? 在命令行運行下方指令,然后重新安裝。
conda config --append channels conda-forge
conda install 需要安裝的包名
方法二:在官網搜索相關包的安裝指令并運行
? ? ? ? 點擊命令行提示的連接,即官網:?https://anaconda.org?,在頁面搜索需要的包,復制下方任意一條指令在命令行運行即可。
PackagesNotFoundError: The following packages are not available from current channels:- beautifulsoupCurrent channels:- https://conda.anaconda.org/conda-forge- https://conda.anaconda.org/bioconda- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro- defaultsTo 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.
? ? ? ? 進入主頁搜索:
? ? ? ? 復制官網提供的命令:?
? ? ? ? 在命令行運行命令:?