Skip to content

Commit ccc54c1

Browse files
committed
Fix TensorFlow 2.0 builds on CentOS
1 parent e27d4ae commit ccc54c1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tensorflow/centos-6.6/build2.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ conda config --add channels conda-forge
88
conda create --yes -n tensorflow python==$PYTHON_VERSION
99
source activate tensorflow
1010
conda install --yes numpy wheel bazel==$BAZEL_VERSION
11+
conda install --yes git
1112
pip install keras-applications keras-preprocessing
1213

1314
# Compile TensorFlow
@@ -18,11 +19,10 @@ pip install keras-applications keras-preprocessing
1819

1920
cd /
2021
rm -fr tensorflow/
21-
git clone --depth 1 "https://github.com/tensorflow/tensorflow.git"
22+
git clone --depth 1 --branch $TF_VERSION_GIT_TAG "https://github.com/tensorflow/tensorflow.git"
2223

2324
TF_ROOT=/tensorflow
2425
cd $TF_ROOT
25-
git checkout $TF_VERSION_GIT_TAG
2626

2727
# Python path options
2828
export PYTHON_BIN_PATH=$(which python)

tensorflow/centos-7.4/build2.sh

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ conda config --add channels conda-forge
88
conda create --yes -n tensorflow python==$PYTHON_VERSION
99
source activate tensorflow
1010
conda install --yes numpy wheel bazel==$BAZEL_VERSION
11+
conda install --yes git
1112
pip install keras-applications keras-preprocessing
1213

1314
# Compile TensorFlow

0 commit comments

Comments
 (0)