来自github的Conda安装包,包括requirements.txt [英] Conda install package from github including requirements.txt

查看:575
本文介绍了来自github的Conda安装包,包括requirements.txt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将jupyter笔记本用作anaconda安装的一部分.我想安装托管在Github上的Python软件包(即通过https://...git://... URL)以及所有requirements.txt依赖项.这是内部开发的自定义软件包,而不是发布到PyPI的软件包.

I use a jupyter notebook as part of an anaconda installation. I'd like to install a Python package hosted on Github (i.e., via a https://... or git://... URL), along with all requirements.txt dependencies. This is a custom package developed in-house, not a package published to PyPI.

我不清楚我是否要在condapip/virtualenv环境中进行操作,或者如何执行操作.最好的方法是什么?

I'm not clear on whether I would want to do it in a conda or a pip/virtualenv environment, or how I would do it. What is the best way to do this?

推荐答案

这可能不是最好的方法,但是您可以使用Ipython控制台安装Github软件包(如果pip支持).像TwitterAPI一样,您可以使用以下命令

This may not be the best way but you can use Ipython console to install Github package (if supported by pip). Like for TwitterAPI you can use below command

!pip install TwitterAPI

这篇关于来自github的Conda安装包,包括requirements.txt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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