【Anaconda找不包】PackagesNotFoundError: The following packages are not available from current channels

一、报错信息

在conda环境下,安装python包的时候,出现报错:PackagesNotFoundError: The following packages are not available from current channels。
在这里插入图片描述

二、解决方案

(一)常规安装命令

conda install package_name

但是当python包找不到的时候,会出现报错:
在这里插入图片描述

(二)搜索工具包

需要先查找工具包

anaconda search -t conda package_name

例如:

anaconda search -t conda pymavlink
Using Anaconda API: https://api.anaconda.org
Packages:                         PS D:360MoveDataUsers45493Desktoptest_stlcsv2py>
     Name                      |  Version | Package Types   | Platforms       | Builds

     ------------------------- |   ------ | --------------- | --------------- | ---------
-
     ThomasDavid/pymavlink     |    2.4.9 | conda           | linux-64        | py37_0

                                          : Python MAVLink code
     auto/pymavlink            |   1.1.23 | conda           | linux-64, linux-32 | py27_0

                                          : http://github.com/mavlink/mavlink
     brenda/pymavlink          |   1.1.44 | conda           | osx-64          | py27_0

                                          : Python MAVLink code
     hargup/pymavlink          |          | conda           | linux-64        | py27_0

                                          : Python MAVLink code
Found 4 packages

Run 'anaconda show <USER/PACKAGE>' to get installation details

(三)显示安装细节

 anaconda show  <USER/PACKAGE>

例如:

anaconda show ThomasDavid/pymavlink
Using Anaconda API: https://api.anaconda.org
Name:    pymavlink
Summary: Python MAVLink code
Access:  public
Package Types:  conda
Versions:
   + 2.4.8
   + 2.4.9

To install this package with conda run:
     conda install --channel https://conda.anaconda.org/ThomasDavid pymavlink

(四)安装工具包

   conda install --channel https://conda.anaconda.org/ThomasDavid pymavlink

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
分享
二维码
< <上一篇
下一篇>>