Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ali-chaudhry8 opened this issue Feb 23, 2020 · 3 comments

Comments

@ali-chaudhry8
Copy link

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

hansa0 commented Mar 30, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants