Skip to content

Instantly share code, notes, and snippets.

@Swarchal
Last active January 28, 2019 13:29
Show Gist options
  • Save Swarchal/09064042bc84890276d0358addf8a99b to your computer and use it in GitHub Desktop.
Save Swarchal/09064042bc84890276d0358addf8a99b to your computer and use it in GitHub Desktop.
conda install packages on google colab notebooks
# install anaconda 5.10
! wget -c https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
! chmod +x Anaconda3-5.1.0-Linux-x86_64.sh
! bash ./Anaconda3-5.1.0-Linux-x86_64.sh -b -f -p /usr/local
import sys
sys.path.append('/usr/local/lib/python3.6/site-packages/')
# install conda dependencies
! conda install -y --prefix /usr/local pytorch==0.4.0 torchvision=0.1.8 -c pytorch
! conda install -y --prefix /usr/local tifffile=0.15.0 -c conda-forge
# install pytorch_fnet from github
! git clone https://github.com/AllenCellModeling/pytorch_fnet
! cd pytorch_fnet; git checkout release_1; $(which python) setup.py install
# run tests
! cd pytorch_fnet; ./scripts/test_run.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment