Skip to content

Anaconda_Offline_Installation

Sam Fries edited this page Dec 8, 2016 · 10 revisions

UV-CDAT "offline" installation:

Install a brand new Anaconda if you only want the packages needed for 
uvcdat and Anaconda on the "offline" machine 
  • Download the latest Anaconda on your online machine.
cd $HOME
wget --no-check https://repo.continuum.io/archive/Anaconda2-4.1.1-Linux-x86_64.sh
chmod a+rx ./Anaconda2-4.1.1-Linux-x86_64.sh
bash ./Anaconda2-4.1.1-Linux-x86_64.sh -b          # for batch mode
export PATH=$HOME/anaconda2/bin/:$PATH
cd $HOME/anaconda2/pkgs
wget --no-check -i urls.txt  #To get all the anaconda original tarballs from continuum.io repository.
conda create -n uvcdat -c conda-forge -c uvcdat uvcdat hdf5=1.8.16 pyqt=4.11.3

or for nightly build

conda create -n uvcdat -c conda-forge -c uvcdat/label/nightly -c uvcdat uvcdat hdf5=1.8.16 pyqt=4.11.3
source activate uvcdat
  • Copy/Install Anaconda on your offline machine.
scp online:Anaconda2-4.1.1-Linux-x86_64.sh offline:$HOME/Anaconda2-4.1.1-Linux-x86_64.sh
cd $HOME
bash ./Anaconda2-4.1.1-Linux-x86_64.sh -b   # where -b stand for batch mode
export PATH=$HOME/anaconda2/bin/:$PATH
  • Create a channel directory.
mkdir -p my_channel/linux-64
  • Copy all the packages from your previous "online" machine (uvcdat/Anaconda) installation to your new channel.
scp  online:/home/anaconda2/pkgs/*.tar.bz2 offline:$HOME/my_channel/linux-64
  • Create a index of your new channel using the "conda index" command.
conda index $HOME/my_channel/linux-64/
  • Create a uvcdat environment on your offline machine using your new local channel.

FIX THE REPOSITORY DATA CACHE FIRST, the repodata.json file online is inconsistent with the one found in some of the packages.

online repodata.json

sed -i 's/matplotlib 1.4.0/matplotlib/' $HOME/my_channel/linux-64/repodata.json
sed -i 's/"libgfortran 3.0"/"libgfortran 3.0*"/' $HOME/my_channel/linux-64/repodata.json
bzip2  -f  my_channel/linux-64/repodata.json

conda create -n uvcdat -c file://home/travis/my_channel uvcdat hdf5=1.8.16 pyqt=4.11.3 --offline 

source activate uvcdat
Clone this wiki locally