问题
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.
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.
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
回答1:
(conda) constructor
The description for the package constructor matches your use case almost to the word:
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.
See the GitHub repo for more details.
One still needs to build a separate installer per architecture (no noarch
support), but the example they provide makes it seem rather straight-forward.
来源:https://stackoverflow.com/questions/54487292/create-a-customized-installer-like-anaconda-with-conda