Anaconda作为一个工具包集成管理工具,下载python工具包是很方便的,直接敲:
conda install package_name
更新相应的库的命令是
conda update package_name
但是有时候安装一个工具包(如xmltodict)的时候,在当前的channels中找不到这个包,会提示:
[root@master sbin]$ conda install
xmltodict
Fetching package metadata .......
Solving package specifications: .
PackageNotFoundError: Package not found: '' Package missing in current linux-64 channels:
- xmltodict
You can search for packages on anaconda.org with
anaconda search -t conda xmltodict
然后你按照提示在anaconda.org中找工具包,
[root@master sbin]$ anaconda search -t conda xmltodict
Using Anaconda API: https://api.anaconda.org
Run 'anaconda show <USER/PACKAGE>' to get more details:
Packages:
Name | Version | Package Types | Platforms
------------------------- | ------ | --------------- | ---------------
PinguCarsti/xmltodict | 0.8.3 | conda | linux-64, osx-64
abgreenwell/xmltodict | 0.8.3 | conda | win-64
asmeurer/xmltodict | 0.8.3 | conda | osx-64
: https://github.com/martinblech/xmltodict
auto/xmltodict | 0.8.6 | conda | linux-64, linux-32, osx-64
: https://github.com/martinblech/xmltodict
bioconda/xmltodict | 0.9.2 | conda | linux-64, osx-64
: Makes working with XML feel like you are working with JSON
conda-forge/xmltodict | 0.10.2 | conda | linux-64, win-32, win-64, osx-64
dan_blanchard/xmltodict | 0.8.3 | conda | linux-64
: https://github.com/martinblech/xmltodict
davidbgonzalez/xmltodict | 0.9.2 | conda | linux-64, osx-64
: Makes working with XML feel like you are working with JSON
derickl/xmltodict | 0.10.2 | conda | osx-64
dimazest/xmltodict | 0.9.2 | conda | linux-64, osx-64
equipoise/xmltodict | 0.9.2 | conda | win-64, osx-64
hargup/xmltodict | | conda | None-None, linux-64
: Makes working with XML feel like you are working with JSON
indico/xmltodict | 0.9.2 | conda | linux-64
: Makes working with XML feel like you are working with JSON
jacksongs/xmltodict | 0.10.2 | conda | osx-64
kabaka0/xmltodict | 0.9.2 | conda | linux-64
: Makes working with XML feel like you are working with JSON
luzazul45/xmltodict | 0.9.2 | conda | win-64
: Makes working with XML feel like you are working with JSON
mathieu/xmltodict | 0.10.1 | conda | osx-64
: Makes working with XML feel like you are working with JSON
mh00h/xmltodict | 0.9.2 | conda | linux-64
: Makes working with XML feel like you are working with JSON
moustik/xmltodict | 0.9.2 | conda | linux-64
russellthomas/xmltodict | 0.9.0 | conda | osx-64
: xmltodict is a simple library that aims at making XML feel like working with JSON
xavier/xmltodict | 0.5.1 | conda | linux-64
: https://github.com/martinblech/xmltodict
Found 21 packages
我们发现了21个包,现在就选择一个合适的版本进行安装,如我选择这个:
conda-forge/xmltodict | 0.10.2 | conda | linux-64, win-32, win-64, osx-64
那么执行下面命令进行安装即可:
[root@master ~]$ conda install -c https://conda.anaconda.org/conda-forge xmltodict