Changes

Jump to navigation Jump to search
===Install Tensorflow using the Virtual Environment===
Install on DBServer under the user McNair. Password: askEd
*1.install virtualenv:
Surprise again! Someone already installed it! Did not install virtualenv again.
*2. Create a directory for the virtual environment and choose python 3 interpreter
mkdir ~/tensorflow # somewhere to work out of
cd ~/tensorflow
'''NOTE: python2 DOES NOT WORK WITH GPU'''
*3. Activate the Virtualenv environment:
source ~/tensorflow/venv/bin/activate # bash
*4. Upgrade pip:
pip install -U pip
*5. Install TensorFlow in the virtual environment: within
pip install -U tensorflow
Validate the installation with:
(venv)$ python -c "import tensorflow as tf; print(tf.__version__)"

Navigation menu