我正在尝试封装我的Python环境,以便它可以在不同的机器上使用。为此,我确实使用了 pipelinev,它工作得很好。
现在我发现了 Anaconda,我发现这个想法很棒:你可以下载安装程序(pkg 或 win 安装程序),它会手动完成你所做的一切,同时安装 virtualenv,激活它,甚至设置 Jupyter界面。
是否有一个程序允许用户使用 Conda 实现相同的功能,以便用户只需下载软件包,而不用处理终端等?我必须将我的环境部署在用户不太熟悉终端的计算机上,并且使用一个安装程序来完成所有操作将节省我实际配置环境的时间
最佳答案
(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.
参见the GitHub repo了解更多详情。
仍然需要为每个架构构建一个单独的安装程序(没有 noarch
支持),但是 the example they provide使它看起来相当简单。
关于python - 使用 Conda 创建像 Anaconda 这样的自定义安装程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54487292/