How to make “conda” installer look for “PyPi” packages

蓝咒 提交于 2020-05-10 06:27:48

问题


I was trying to use 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

Is there a way to add a channel to Anaconda that will enable it to look for All PyPi packages so that I can use "conda" completely instead of switching over to pip every now and then


回答1:


According to conda skeleton, you can first run

conda skeleton pypi package

It will generate conda recipe for that package if it is available on PyPi, then

conda build package
conda install --use-local package 

It will install the package

Enjoy !



来源:https://stackoverflow.com/questions/38209848/how-to-make-conda-installer-look-for-pypi-packages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!