Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Anaconda be packaged for a portable zero-configuration install?

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.

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?

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.

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.

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

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

like image 407
Crashworks Avatar asked Oct 11 '16 18:10

Crashworks


People also ask

How do you make an Anaconda portable?

TO make Anaconda3 truly portable, the vendor has to create a new installer which will either ask for a location from the user to store the user-data, settings and configuration OR the path should be supplied as a parameter in case of a silent type install OR the installer should store the user-data in a dedicated ...

Does Anaconda come with packages?

Anaconda comes with over 150 pre-installed Python packages to get you started quickly.

Where is the best place to install Anaconda?

The default install location for Anaconda is: (Linux): /home/<your_username>/Anaconda3. (Windows): C:\Users\<your_username>\Anaconda3.


2 Answers

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 

(Solution found in this issue)

like image 179
FabienP Avatar answered Sep 22 '22 02:09

FabienP


Since you mentioned WinPython as an option, but said you dismissed it for being 'too large':

WinPython now includes a 'Zero' version with each release that has nearly all of the bloat removed (equivalent to the relationship between Miniconda and Anaconda). I believe the folder containing the WinPython-64bit v3.6.3.0Zero release clocked in around 50-100MB.

like image 30
subnivean Avatar answered Sep 26 '22 02:09

subnivean