Skip to content

Commit 5b4bb03

Browse files
authored
Merge pull request tensorflow#8097 from jhseu/r1.0_fixes
r1.0 python 3.5 fixes
2 parents 96d555e + 74ab5f1 commit 5b4bb03

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tensorflow/tools/ci_build/install/install_python3.5_pip_packages.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,17 @@ set -e
9393
pip3.5 install --upgrade six==1.10.0
9494

9595
# Install protobuf.
96-
pip3.5 install --upgrade protobuf==3.0.0
96+
pip3.5 install --upgrade protobuf==3.1.0
9797

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

101101
# Install numpy, scipy and scikit-learn required by the builds
102-
pip3.5 install --upgrade numpy
102+
103+
# numpy needs to be installed from source to fix segfaults. See:
104+
# https://github.com/tensorflow/tensorflow/issues/6968
105+
# This workaround isn't needed for Ubuntu 16.04 or later.
106+
pip3.5 install --no-binary=:all: --upgrade numpy
103107

104108
set +e
105109
SCIPY_VERSION="0.17.1"

0 commit comments

Comments
 (0)