forked from martin-gorner/tensorflow-mnist-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.txt
36 lines (30 loc) · 1.58 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Python 3 is recommended for this lab. Python 2 works as well if you adapt the installation instructions.
Installation instructions for straightforward pip install below.
If you are a power user under a specific Python environment ((virtualenv, anaconda,
docker), please visit tensorflow.org and follow the Python 3 instructions.
MacOS:
If you do not have it already, install git from https://git-scm.com/download/mac
Install the latest version of python 3 from https://www.python.org/downloads/
pip3 install --upgrade tensorflow
pip3 install --upgrade matplotlib
Ubuntu/Linux:
sudo -H apt-get install git
sudo -H apt-get install python3
sudo -H apt-get install python3-matplotlib
sudo -H apt-get install python3-pip
sudo -H pip3 install --upgrade tensorflow
# you might alo need to upgrade matplotlib, the version pulled by
# apt-get is sometimes stale (but comes with the gfx backend)
sudo -H pip3 install --upgrade matplotlib
Windows:
Install Anaconda, Python 3 version: https://www.continuum.io/downloads#windows
Anaconda comes with matplotlib built in.
In the Anaconda shell type: pip install --upgrade tensorflow
If you get the error "Could not find a version that satisfies the requirement (...)" try the following alternative:
conda config --add channels conda-forge
conda install tensorflow
TEST YOUR INSTALLATION:
git clone https://github.com/martin-gorner/tensorflow-mnist-tutorial.git
cd tensorflow-mnist-tutorial
python3 mnist_1.0_softmax.py
=> A window should appear displaying a graphical visualisation and you should also see training data in the terminal.