Changes

Jump to navigation Jump to search
1,058 bytes added ,  16:17, 15 May 2019
Flush the local env:
source ~/.bashrc
 
=====Tensorflow=====
Now install tensorflow using pip (see https://www.tensorflow.org/install/pip):
source ./venv/bin/activate # sh, bash, ksh, or zsh
pip install --upgrade tensorflow-gpu
python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"
And this doesn't work. It turns out that tensorflow 1.13.1 doesn't work with CUDA 10.1! But there is a work around, which is to install cuda10 in conda only (see https://github.com/tensorflow/tensorflow/issues/26182). Still as researcher (and in the venv): conda install cudatoolkit conda install cudnn conda install tensorflow-gpu export LD_LIBRARY_PATH=/home/researcher/anaconda3/lib/${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))" AND IT WORKS!
Note: to deactivate virtual environment:
deactivate
=====Theano===== Theano v.1 requires python >=3.4 and <3.6. We are currently running 3.7. If we decide to install theano, we'll need to set up another version of python and another virtual environment. See:*http://deeplearning.net/software/theano/install_ubuntu.html =====PyTorch and SciKit===== Run the following as researcher (in venv): conda install -c anaconda numpy conda install pytorch torchvision cudatoolkit=10.0 -c pytorch conda install -c anaconda scikit-learn Refs:*Tensorflowhttps://anaconda.org/anaconda/scikit-learn*Theanohttps://anaconda.org/anaconda/numpy*Torchhttps://pytorch.org/
====Other packages====

Navigation menu