Skip to content

Instantly share code, notes, and snippets.

@Swarchal
Last active January 28, 2019 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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