如何制作"conda"安装程序寻找"PyPi"套餐 [英] How to make "conda" installer look for "PyPi" packages

查看:141
本文介绍了如何制作"conda"安装程序寻找"PyPi"套餐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用 conda 程序包管理器进行安装我的Python包.最近,我遇到了Anaconda.org资源库中没有的许多我需要的软件包,因此我不得不通过pip安装它们.参考: github问题

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

是否可以将添加频道到Anaconda来启用它查找所有PyPi软件包,以便我可以完全使用"conda",而不是不时切换到pip

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

推荐答案

根据conda框架,您可以先运行

According to conda skeleton, you can first run

conda skeleton pypi package

如果在PyPi上可用,它将为该软件包生成conda配方,

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

conda build package
conda install --use-local package 

它将安装软件包

享受!

这篇关于如何制作"conda"安装程序寻找"PyPi"套餐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆