You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
via ``virtualenv`` can help you to manage python packages.
32
-
33
-
Take Python3 on Ubuntu for example, to install Python includes ``pip``, run the following commands:
34
-
35
-
.. code-block:: bash
36
-
37
-
sudo apt-get install python3
38
-
sudo apt-get install python3-pip
39
-
sudo pip3 install virtualenv
40
-
41
-
To build a virtual environment and install dependencies into it, run the following commands:
42
-
(You can also skip to Step 3, automatically install the prerequisites by TensorLayer)
43
-
44
-
.. code-block:: bash
45
-
46
-
virtualenv env
47
-
env/bin/pip3 install matplotlib
48
-
env/bin/pip3 install numpy
49
-
env/bin/pip3 install scipy
50
-
env/bin/pip3 install scikit-image
51
-
52
-
To check the installed packages, run the following command:
53
-
54
-
.. code-block:: bash
55
-
56
-
env/bin/pip3 list
57
-
58
-
After that, you can run python script by using the virtual python as follow.
59
-
60
-
.. code-block:: bash
61
-
62
-
env/bin/python3 *.py
63
-
64
-
65
-
66
-
67
-
Step 2 : TensorFlow
18
+
Install TensorFlow
68
19
=========================
69
20
70
21
.. code-block:: bash
71
22
72
-
env/bin/pip3 install tensorflow-gpu
73
-
env/bin/pip3 install tensorflow-gpu==2.0.0a0 # specific version
23
+
pip3 install tensorflow-gpu==2.0.0a0 # specific version (YOU SHOULD INSTALL THIS ONE NOW)
24
+
pip3 install tensorflow-gpu # GPU version
25
+
pip3 install tensorflow # CPU version
74
26
75
27
The installation instructions of TensorFlow are written to be very detailed on `TensorFlow`_ website.
76
-
However, there are something need to be considered.
77
-
For example, `TensorFlow`_ officially
78
-
supports GPU acceleration for Linux, Mac OX and Windows at present.
28
+
However, there are something need to be considered. For example, `TensorFlow`_ officially supports GPU acceleration for Linux, Mac OX and Windows at present. For ARM processor architecture, you need to install TensorFlow from source.
79
29
80
-
.. warning::
81
-
For ARM processor architecture, you need to install TensorFlow from source.
82
-
83
-
Step 3 : TensorLayer
30
+
Install TensorLayer
84
31
=========================
85
32
86
33
For stable version:
@@ -93,7 +40,16 @@ For latest version, please install from Github.
0 commit comments