Anaconda可以打包为便携式零配置安装吗? [英] Can Anaconda be packaged for a portable zero-configuration install?

查看:458
本文介绍了Anaconda可以打包为便携式零配置安装吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Python部署到组织中的非程序员,这样安装过程完全包括同步来自Perforce的目录,并可能运行一个设置环境变量的批处理文件.

I'd like to deploy Python to non-programmers in my organization such that the install process consists entirely of syncing a directory from Perforce and maybe running one batch file that sets up environment variables.

是否可以通过仅复制目录的方式打包Miniconda并将其打包?它的安装程序有什么作用?

Is it possible to package up Miniconda in such a way it can be "installed" just by copying down a directory? What does its installer do?

之所以这样做,是因为我想通过为艺术家提供可以从命令行运行的Python脚本来为艺术家自动执行某些任务.但是我需要将解释器安装到他们的计算机上,而不必运行任何类型的安装程序或卸载程序,或者运行可能以非幂等方式失败的进程.设置环境变量的批处理文件很好,因为它是幂等的.可能会中途失败并使工作站进入需要干预才能修复的状态的安装程序不是.

The reason for this is that I'd like to automate certain tasks for our artists by providing them with Python scripts they can run from the commandline. But I need to get the interpreter onto their machines without having to run any kind of installer or uninstaller, or any process that can fail in a non-idempotent way. A batch file that sets up env vars is fine, because it is idempotent. An installer that can fail partway through and put the workstation into a state requiring intervention to fix is not.

尤其是,要在每个人的安装中添加库,应包括以下步骤:在我的办公桌上使用conda,将随后的目录检查到P4中,然后让艺术家使用他们的下一个p4 sync自动选择它.

In particular, adding a library to everyone's install should consist of my using conda on my desk, checking the ensuing directory into P4, and then letting artists pick it up automatically with their next p4 sync.

我查看了WinPython,但1.4GB的文件太大了.便携式Python已失效.

I looked at WinPython, but at 1.4GB it is too large. Portable Python is defunct.

我们仅是Windows商店,因此不需要Linux或Mac便携式解决方案.

We are exclusively a Windows shop, so do not need Linux- or Mac-portable solutions.

推荐答案

您可以使用

You can use the silent install mode to create a fully portable Miniconda install (250MB for v.4.3.21 windows x64).

Miniconda3-latest-Windows-x86_64.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /NoRegistry=1

(解决方案在本期中)

这篇关于Anaconda可以打包为便携式零配置安装吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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