Skip to content

Commit 8ffca6c

Browse files
authored
Update installation.rst
1 parent 52d567f commit 8ffca6c

1 file changed

Lines changed: 17 additions & 61 deletions

File tree

docs/user/installation.rst

Lines changed: 17 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -15,72 +15,19 @@ Mac OX, Linux and Windows, or ask for help on `tensorlayer@gmail.com <tensorlaye
1515
or `FAQ <http://tensorlayer.readthedocs.io/en/latest/user/more.html>`_.
1616

1717

18-
19-
Step 1 : Install dependencies
20-
=================================
21-
22-
TensorLayer is build on the top of Python-version TensorFlow, so please install
23-
Python first.
24-
25-
.. note::
26-
We highly recommend python3 instead of python2 for the sake of future.
27-
28-
Python includes ``pip`` command for installing additional modules is recommended.
29-
Besides, a `virtual environment
30-
<http://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/>`_
31-
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
6819
=========================
6920

7021
.. code-block:: bash
7122
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
7426
7527
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.
7929

80-
.. warning::
81-
For ARM processor architecture, you need to install TensorFlow from source.
82-
83-
Step 3 : TensorLayer
30+
Install TensorLayer
8431
=========================
8532

8633
For stable version:
@@ -93,7 +40,16 @@ For latest version, please install from Github.
9340

9441
.. code-block:: bash
9542
96-
pip3 install git+https://github.com/zsdonghao/tensorlayer.git
43+
pip3 install git+https://github.com/tensorlayer/tensorlayer.git
44+
or
45+
pip3 install https://github.com/tensorlayer/tensorlayer/archive/master.zip
46+
47+
For developers, you should clone the folder to your local machine and put it along with your project scripts.
48+
49+
.. code-block:: bash
50+
51+
git clone https://github.com/tensorlayer/tensorlayer.git
52+
9753
9854
Alternatively, you can build from the source.
9955

@@ -147,7 +103,7 @@ editable, then you can edit the source code in ``tensorlayer`` folder, and ``imp
147103
TensorLayer.
148104

149105

150-
Step 4 : GPU support
106+
GPU support
151107
==========================
152108

153109
Thanks to NVIDIA supports, training a fully connected network on a

0 commit comments

Comments
 (0)