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 需要安装的包名
方法二:在官网搜索相关包的安装指令并运行
点击命令行提示的连接,即官网: 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.进入主页搜索:


复制官网提供的命令:


在命令行运行命令:

总结
到此这篇关于Python Conda安装包报错:PackagesNotFoundError两种解决方法的文章就介绍到这了,更多相关Conda安装包报错PackagesNotFoundErro内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!
相关文章
python 办公自动化——基于pyqt5和openpyxl统计符合要求的名单
前几天接到的一个需求,因为学校给的名单是青年大学习已学习的名单,然而要知道未学习的名单只能从所有团员中再排查一次,过程相当麻烦。刚好我也学过一些操作办公软件的基础,再加上最近在学pyqt5,所以我决定用python写个自动操作文件的脚本给她用用。2021-05-05
Anaconda+Pycharm环境下的PyTorch配置方法
这篇文章主要介绍了Anaconda+Pycharm环境下的PyTorch配置方法,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下2020-03-03
Python读取Pickle文件信息并计算与当前时间间隔的方法分析
这篇文章主要介绍了Python读取Pickle文件信息并计算与当前时间间隔的方法,涉及Python基于pickle模块操作文件属性相关实现技巧,需要的朋友可以参考下2019-01-01


最新评论