转自:http://www.th7.cn/Program/Python/201611/1006905.shtml
一、Anaconda作为一个工具包集成管理工具,下载python工具包是很方便的,直接敲:
conda install package_name
但是有时候安装一个工具包(如xmltodict)的时候,在当前的channels中找不到这个包,会提示:
conda install pydot Fetching package metadata ....... Solving package specifications: . PackageNotFoundError: Package not found: '' Package missing in current win-64 channels: - xmltodictYou can search for packages on anaconda.org withanaconda search -t conda xmltodict
接着根据提示 输入 anaconda search -t conda xmltodict搜索结果:
现在就选择一个合适的版本进行安装,如我选择这个:
conda-forge/xmltodict | 0.10.2 | conda | linux-64, win-32, win-64, osx-64
那么执行下面命令进行安装即可:
conda install -c https://conda.anaconda.org/conda-forge xmltodict
二、直接使用pip install package_name命令并本地的工具库中加载安装