Git Product home page Git Product logo

Comments (3)

yhalpern avatar yhalpern commented on May 4, 2024

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.

from ml-fairness-gym.

ali-chaudhry8 avatar ali-chaudhry8 commented on May 4, 2024

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?

from ml-fairness-gym.

hansa0 avatar hansa0 commented on May 4, 2024

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?

from ml-fairness-gym.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.