aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/ci_build/install/install_pip_packages.sh
blob: 19c46bbcd4689dccd6e78220268d470873625c47 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env bash
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================

set -e

# Install pip packages from whl files to avoid the time-consuming process of
# building from source.

pip install wheel
pip3 install wheel

# Install six.
pip install --upgrade six==1.10.0
pip3 install --upgrade six==1.10.0

# Install werkzeug.
pip install --upgrade werkzeug==0.11.10
pip3 install --upgrade werkzeug==0.11.10

# Install protobuf.
pip install --upgrade protobuf==3.2.0
pip3 install --upgrade protobuf==3.2.0

# Remove obsolete version of six, which can sometimes confuse virtualenv.
rm -rf /usr/lib/python3/dist-packages/six*

pip install --upgrade numpy==1.12.0
pip3 install --upgrade numpy==1.12.0

pip install scipy==0.18.1
pip3 install scipy==0.18.1

pip install scikit-learn==0.18.1
pip3 install scikit-learn==0.18.1

# pandas required by tf.learn/inflow
pip install pandas==0.19.2
pip3 install pandas==0.19.2

# Benchmark tests require the following:
pip install psutil
pip3 install psutil
pip install py-cpuinfo
pip3 install py-cpuinfo

# pylint tests require the following:
pip install pylint
pip3 install pylint

# pep8 tests require the following:
pip install pep8
pip3 install pep8

# tf.mock require the following for python2:
pip install mock

pip install portpicker
pip3 install portpicker