如何让 "conda" 安装程序查找 "PyPi" 软件包

How to make "conda" installer look for "PyPi" packages

我正在尝试使用 conda package manager to install my Python packages. Recently I encountered that many of the packages that I required were not present in the Anaconda.org repository, and I had to pip install them. Ref: github issues

有没有办法 add a channel Anaconda 使其能够查找所有 PyPi 包,这样我就可以完全使用 "conda" 而不是时不时地切换到 pip

根据conda skeleton,可以先运行

conda skeleton pypi package

如果 PyPi 上可用,它将为该包生成 conda 配方,然后

conda build package
conda install --use-local package 

它将安装包

尽情享受吧!