IT俱乐部 Python Python Conda安装包报错:PackagesNotFoundError两种解决方法

Python Conda安装包报错:PackagesNotFoundError两种解决方法

Conda在下载安装包时报错:

PackagesNotFoundError: The following packages are not available from current channels:

  – XXXXXX(包名)

有如下两种解决方法:

方法一:将conda-forge添加到搜索路径上

在命令行运行下方指令,然后重新安装。

1
conda config --append channels conda-forge
1
conda install 需要安装的包名

方法二:在官网搜索相关包的安装指令并运行

点击命令行提示的连接,即官网: https://anaconda.org ,在页面搜索需要的包,复制下方任意一条指令在命令行运行即可。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PackagesNotFoundError: The following packages are not available from current channels:
 
  - beautifulsoup
 
Current channels:
 
  - defaults
 
To search for alternate channels that may provide the conda package you're
looking for, navigate to
 
 
and use the search bar at the top of the page.

进入主页搜索:

复制官网提供的命令: 

在命令行运行命令: 

总结

到此这篇关于Python Conda安装包报错:PackagesNotFoundError两种解决方法的文章就介绍到这了,更多相关Conda安装包报错PackagesNotFoundErro内容请搜索IT俱乐部以前的文章或继续浏览下面的相关文章希望大家以后多多支持IT俱乐部!

本文收集自网络,不代表IT俱乐部立场,转载请注明出处。https://www.2it.club/code/python/11880.html
上一篇
下一篇
联系我们

联系我们

在线咨询: QQ交谈

邮箱: 1120393934@qq.com

工作时间:周一至周五,9:00-17:30,节假日休息

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

返回顶部