一、报错信息
在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:\360MoveData\Users\45493\Desktop\test_stl\csv2py>
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
文章出处登录后可见!
已经登录?立即刷新