google / ml-fairness-gym

Apache License 2.0
311 stars 79 forks source link

Can't Reproduce Results: Tensorflow==1.15 not available on pip any more #10

Open ali-chaudhry8 opened 4 years ago

ali-chaudhry8 commented 4 years ago

Do you have a github version of this ml-fairness-code with tensorflow 1.8 or later? Currently requirements.txt uses tensorflow==1.15 which is not available for pip installation anymore. I have tensorflow 1.8 but that (obviously) creates a lot of dependancies issues. I am struggling to reproduce the results.

Please let me know.

Many thanks, Ali

yhalpern commented 4 years ago

Hi Ali, tensorflow 1.15 is the final version of tensorflow 1.x and it looks like it is supported. Can you try to follow the instructions here? https://www.tensorflow.org/install/pip?lang=python3#older-versions-of-tensorflow

pip install --upgrade tensorflow==1.15 seems to work fine for me.

ali-chaudhry8 commented 4 years ago

Thanks Yoni. When I install tensorflow, it says requirements satisfied but when I import tensorflow it gives a syntax error: Traceback (most recent call last): File "", line 1, in File "/python3.8/site-packages/tensorflow/init.py", line 24, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "/python3.8/site-packages/tensorflow/python/init.py", line 49, in from tensorflow.python import pywrap_tensorflow File "/Users/ali/Documents/Reinforcement_Learning/ml-fairness-gym/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "/tensorflow/python/pywrap_tensorflow_internal.py", line 114 def TFE_ContextOptionsSetAsync(arg1, async):

Do you think this might be because i have python 3.8?

hansa0 commented 4 years ago

Hi Ali,

Yes that may be the problem. From the Tensorflow installation website (https://www.tensorflow.org/install/pip), it seems the supported versions of python are 3.5-3.7.

Can you try installing and running with python 3.7?