How can I install a conda environment when offline?

WalkingRandomly picture WalkingRandomly · Jul 30, 2015 · Viewed 38.9k times · Source

I would like to create a conda environment on a machine that has no network connection. What I've done so far is:

On a machine that is connected to the internet:

conda create -n python3 python=3.4 anaconda

Conda archived all of the relevant packages into \Anaconda\pkgs. I put these into a separate folder and moved it to the machine with no network connection. The folder has the path PATHTO\Anaconda_py3\win-64

I tried

conda create -n python=3.4 anaconda --offline --channel PATHTO\Anaconda_py3

This gives the error message

Fetching package metadata:
Error: No packages found in current win-64 channels matching: anaconda

You can search for this package on Binstar with

    binstar search -t conda anaconda

What am I doing wrong? How do I tell conda to create an environment based on the packages in this directory?

Answer

Arthur Alvim picture Arthur Alvim · Apr 15, 2016

You could try cloning root which is the base env.

conda create -n yourenvname --clone root