diff --git a/setup.py b/setup.py index 0a24c67b7d..86d1534ed8 100644 --- a/setup.py +++ b/setup.py @@ -308,10 +308,14 @@ def run(self): # Add additional requirements for testing on Linux. We skip some tests on Windows, # because the libraries below are too tricky to install there. -linux_testenv = win_testenv + [ - 'tensorflow', - 'keras', -] +linux_testenv = win_testenv[:] +if sys.version_info >= (3, 7): + # HACK: Installing tensorflow causes a segfault in Travis on py3.6. Other Pythons work – a mystery. + # See https://github.com/RaRe-Technologies/gensim/pull/2814#issuecomment-621477948 + linux_testenv += [ + 'tensorflow', + 'keras', + ] NUMPY_STR = 'numpy >= 1.11.3' #