Conda在下載安裝包時報錯:
PackagesNotFoundError: The following packages are not available from current channels: - XXXXXX(包名)
有如下兩種解決方法:
方法一:將conda-forge添加到搜索路徑上
? ? ? ? 在命令行運行下方指令,然后重新安裝。
conda config --append channels conda-forge
conda install 需要安裝的包名
方法二:在官網(wǎng)搜索相關(guān)包的安裝指令并運行
? ? ? ? 點擊命令行提示的連接,即官網(wǎng):?https://anaconda.org?,在頁面搜索需要的包,復(fù)制下方任意一條指令在命令行運行即可。
PackagesNotFoundError: The following packages are not available from current channels:
- beautifulsoup
Current 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
- defaults
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
? ? ? ? 進入主頁搜索:
? ? ? ? 復(fù)制官網(wǎng)提供的命令:?
? ? ? ? 在命令行運行命令:?文章來源:http://www.zghlxwxcb.cn/news/detail-850776.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-850776.html
到了這里,關(guān)于Python | Conda安裝包報錯:PackagesNotFoundError的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!