Changes

Jump to navigation Jump to search
no edit summary
https://stackoverflow.com/questions/46499808/pip-throws-typeerror-parse-got-an-unexpected-keyword-argument-transport-enco#_=_
=New (by Wei and Minh): Installation Log=
'''Important note: install the version of software/packages strictly according to the instructions provided by Tensorflow. A different version of software, for example CUDA toolkit 9.2 instead of 9.0, might lead to failure in tensorflow.'''
==NVIDIA configuration==
===Install GPU drivers===
*7. Did not need to install the GPU drivers because we already had the correct version.
===Install libcupti-dev library===
*8.Tried to install the libcupti-dev library with:
sudo apt-get install cuda-command-line-tools-9-0
===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
# Choose one of the following Python environments for the ./venv directory:
virtualenv --system-site-packages -p python3 venv # Use Python 3.n
 
'''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__)"
197

edits

Navigation menu