使用Conda创建像Anaconda这样的自定义安装程序 [英] Create a customized installer like Anaconda, with Conda

查看:212
本文介绍了使用Conda创建像Anaconda这样的自定义安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试封装我的python环境,以便可以在不同的机器上使用它.为此,我确实使用了pipenv,并且效果很好.

I am trying to encapsulate my python environment so it can be used on different maachines. For the purpose I did use pipenv and it works fine.

现在,我发现了Anaconda,并发现了一个绝妙的主意:您可以下载安装程序(pkg或win安装程序),它将在安装virtualenv,激活它甚至安装Jupyter的过程中手动完成所有操作.界面.

Now I discovered Anaconda, and I found the idea brilliant: you can download the installer (pkg or win installer), and it will do everything you do by hand, while installing the virtualenv, activate it and even set up a Jupyter interface.

是否存在允许用户使用Conda实现相同功能的过程,因此用户只需下载软件包即可,而不必处理终端之类的事情?我必须将环境部署在用户对终端不太熟练的机器上,并且只有一个可以完成所有工作的安装程序才能节省我实际配置环境的时间

Is there a procedure that allow users to implement the same, using Conda, so a user just download the package, instead of dealing with terminal and such? I have to deploy my environment on machines where users are not that proficient with terminal, and having a single installer that does everything would save me time to actually configure the environment

推荐答案

(conda)构造函数

软件包构造函数的描述几乎将您的用例与以下单词匹配:

(conda) constructor

The description for the package constructor matches your use case almost to the word:

constructor是一个工具,可用于构造conda软件包集合的安装程序.基本上,它会创建一个类似Anaconda的安装程序,其中包含conda程序包.

constructor is a tool which allows constructing an installer for a collection of conda packages. Basically, it creates an Anaconda-like installer consisting of conda packages.

有关更多详细信息,请参见 GitHub存储库.

See the GitHub repo for more details.

每个体系结构仍然需要构建一个单独的安装程序 (不支持noarch),但是

One still needs to build a separate installer per architecture (no noarch support), but the example they provide makes it seem rather straight-forward.

这篇关于使用Conda创建像Anaconda这样的自定义安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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