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

Error: Module 'tensorflow' has no attribute 'get_default_graph' #105

Closed
vvkuryshev opened this issue Oct 5, 2020 · 3 comments
Closed

Error: Module 'tensorflow' has no attribute 'get_default_graph' #105

vvkuryshev opened this issue Oct 5, 2020 · 3 comments
Labels
question Further information is requested

Comments

@vvkuryshev
Copy link

I have the same problem, as described in issue #48. Trying to run pip install tensorflow == 1.9.0 results in an error:
C:\WINDOWS\system32>pip install tensorflow==1.9.0
ERROR: Could not find a version that satisfies the requirement tensorflow==1.9.0 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1)
ERROR: No matching distribution found for tensorflow==1.9.0

Windows10
Python 3.8.

Originally posted by @vvkuryshev in #48 (comment)

@Mahdidrm
Copy link

Mahdidrm commented Oct 8, 2020

Same problem. I have checked the code to find any keras and change it to tensorflow.keras but I did not found. @vvkuryshev if you found the answer please tell me. thanks

@serengil
Copy link
Owner

serengil commented Oct 8, 2020

Tensorflow 1.9.0 is available for python 3.6. Please downgrade your python.

@serengil serengil closed this as completed Oct 8, 2020
@vvkuryshev
Copy link
Author

Thanks for advise, Sefik. Of course this will work as a temporary solution. But modern versions of python (3.9 is out now) do not support Tensorfow earlier than 2.2. It would be great if deepface worked on TF 2.2+ as well.

@serengil serengil added the question Further information is requested label Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants