Python?Conda安裝包報錯:PackagesNotFoundError兩種解決方法
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 ,在頁面搜索需要的包,復制下方任意一條指令在命令行運行即可。
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.進入主頁搜索:


復制官網(wǎng)提供的命令:


在命令行運行命令:

總結(jié)
到此這篇關(guān)于Python Conda安裝包報錯:PackagesNotFoundError兩種解決方法的文章就介紹到這了,更多相關(guān)Conda安裝包報錯PackagesNotFoundErro內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
python 辦公自動化——基于pyqt5和openpyxl統(tǒng)計符合要求的名單
前幾天接到的一個需求,因為學校給的名單是青年大學習已學習的名單,然而要知道未學習的名單只能從所有團員中再排查一次,過程相當麻煩。剛好我也學過一些操作辦公軟件的基礎,再加上最近在學pyqt5,所以我決定用python寫個自動操作文件的腳本給她用用。2021-05-05
Python大數(shù)據(jù)用Numpy Array的原因解讀
一個Numpy數(shù)組由許多值組成,所有值的類型是相同的,Numpy 是Python科學計算的一個核心模塊,本文重點給大家介紹Python大數(shù)據(jù)Numpy Array的相關(guān)知識,感興趣的朋友一起看看吧2022-02-02
Anaconda+Pycharm環(huán)境下的PyTorch配置方法
這篇文章主要介紹了Anaconda+Pycharm環(huán)境下的PyTorch配置方法,本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-03-03
Python讀取Pickle文件信息并計算與當前時間間隔的方法分析
這篇文章主要介紹了Python讀取Pickle文件信息并計算與當前時間間隔的方法,涉及Python基于pickle模塊操作文件屬性相關(guān)實現(xiàn)技巧,需要的朋友可以參考下2019-01-01
python獲取外網(wǎng)ip地址的方法總結(jié)
這篇文章主要介紹了python獲取外網(wǎng)ip地址的方法,實例總結(jié)了四種常用的獲取外網(wǎng)IP地址的技巧,需要的朋友可以參考下2015-07-07

