env_requirement.rst 2.0 KB
Newer Older
L
Liangliang He 已提交
1
Environment requirement
L
update  
liutuo 已提交
2
========================
3 4 5

MACE requires the following dependencies:

L
Liangliang He 已提交
6 7
Required dependencies
---------------------
8 9 10 11

.. list-table::
    :header-rows: 1

L
Liangliang He 已提交
12 13 14 15 16 17 18
    * - Software
      - Installation command
      - Tested version
    * - Python
      -
      - 2.7
    * - Bazel
19
      - `bazel installation guide <https://docs.bazel.build/versions/master/install.html>`__
L
Liangliang He 已提交
20 21
      - 0.13.0
    * - CMake
22
      - apt-get install cmake
L
Liangliang He 已提交
23 24
      - >= 3.11.3
    * - Jinja2
25
      - pip install -I jinja2==2.10
L
Liangliang He 已提交
26
      - 2.10
27 28
    * - PyYaml
      - pip install -I pyyaml==3.12
L
Liangliang He 已提交
29
      - 3.12.0
30 31
    * - sh
      - pip install -I sh==1.12.14
L
Liangliang He 已提交
32
      - 1.12.14
L
liuqi 已提交
33 34 35
    * - Numpy
      - pip install -I numpy==1.14.0
      - Required by model validation
36 37 38
    * - six
      - pip install -I six==1.11.0
      - Required for Python 2 and 3 compatibility (TODO)
39

L
Liangliang He 已提交
40 41
Optional dependencies
---------------------
42 43 44 45

.. list-table::
    :header-rows: 1

L
Liangliang He 已提交
46 47 48 49 50
    * - Software
      - Installation command
      - Remark
    * - Android NDK
      - `NDK installation guide <https://developer.android.com/ndk/guides/setup#install>`__
Y
yejianwu 已提交
51
      - Required by Android build, r15b, r15c, r16b, r17b
L
Liangliang He 已提交
52 53 54 55 56 57 58
    * - ADB
      - apt-get install android-tools-adb
      - Required by Android run, >= 1.0.32
    * - TensorFlow
      - pip install -I tensorflow==1.6.0
      - Required by TensorFlow model
    * - Docker
L
liuqi 已提交
59
      - `docker installation guide <https://docs.docker.com/install/linux/docker-ce/ubuntu/#set-up-the-repository>`__
L
Liangliang He 已提交
60 61 62 63 64 65
      - Required by docker mode for Caffe model
    * - Scipy
      - pip install -I scipy==1.0.0
      - Required by model validation
    * - FileLock
      - pip install -I filelock==3.0.0
L
liuqi 已提交
66
      - Required by run on Android
L
Liangliang He 已提交
67 68 69

.. note::

Y
yejianwu 已提交
70
    - For Android build, `ANDROID_NDK_HOME` must be confifigured by using ``export ANDROID_NDK_HOME=/path/to/ndk``
L
liuqi 已提交
71
    - It will link ``libc++`` instead of ``gnustl`` if ``NDK version >= r17b`` and ``bazel version >= 0.13.0``, please refer to `NDK cpp-support <https://developer.android.com/ndk/guides/cpp-support>`__.