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

I can't run main.py, No module named 'keras.src.engine' #77

Open
8maradona8 opened this issue Mar 24, 2024 · 16 comments
Open

I can't run main.py, No module named 'keras.src.engine' #77

8maradona8 opened this issue Mar 24, 2024 · 16 comments

Comments

@8maradona8
Copy link

Hello, I am using macOS Sonoma M1chip, my python version is 3.11.4 ia m installing all modules from requirements navigate to folder but can't run it some problem with kerbs

P.S When try to install this version
tensorflow~=2.9.1
tensorflow-addons~=0.17.1

I get this error
ERROR: Could not find a version that satisfies the requirement tensorflow-addons==0.17.1 (from versions: 0.21.0, 0.22.0, 0.23.0)
ERROR: No matching distribution found for tensorflow-addons==0.17.1

ERROR: Could not find a version that satisfies the requirement tensorflow==2.9.1 (from versions: 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0, 2.13.1, 2.14.0rc0, 2.14.0rc1, 2.14.0, 2.14.1, 2.15.0rc0, 2.15.0rc1, 2.15.0, 2.15.1, 2.16.0rc0, 2.16.1)
ERROR: No matching distribution found for tensorflow==2.9.1

then I install latest version on both modules
Please help me if you can

Thank You!

@kochlisGit
Copy link
Owner

It seems tensorflow 2.9.1 is not compatible with python 3.11. It is in python 3.9 though. What You can do is actually install a different tensoflow version, e.g. 2.9.0 or 2.10 maybe

@Fx5flier
Copy link

Fx5flier commented Apr 2, 2024

Tried as well, it seems that I can't install any version below 2.13, with this one it doesn't work

@kochlisGit
Copy link
Owner

ok. then download python 3.9. It should work!

@Fx5flier
Copy link

Fx5flier commented Apr 2, 2024

Got 3.9 and set it up , this is what I've got:
ERROR: Could not find a version that satisfies the requirement tensorflow==2.9.1 (from versions: 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0, 2.13.1, 2.14.0rc0, 2.14.0rc1, 2.14.0, 2.14.1, 2.15.0rc0, 2.15.0rc1, 2.15.0, 2.15.1, 2.16.0rc0, 2.16.1)
ERROR: No matching distribution found for tensorflow==2.9.1

@8maradona8
Copy link
Author

For me, situation is the same

@kochlisGit
Copy link
Owner

What is your operating system? Are you using windows?
Also, what about tensorflow 2.13.0? Does it work?

@8maradona8
Copy link
Author

Like i say in first post, i am with macos and the error is with 2.16 tensorflow, after that i downgrade python to 3.9.6 and try to reinstall with tensorflow 2.9.1 but same error like this:
ERROR: Could not find a version that satisfies the requirement tensorflow==2.9.1 (from versions: 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0, 2.13.1, 2.14.0rc0, 2.14.0rc1, 2.14.0, 2.14.1, 2.15.0rc0, 2.15.0rc1, 2.15.0, 2.15.1, 2.16.0rc0, 2.16.1)
ERROR: No matching distribution found for tensorflow==2.9.1

@Calin96
Copy link

Calin96 commented Apr 3, 2024

Don't bother with it ,I have tried to do the same with macos M2 , issue is persistent even with different python verions (used 3.11 first then 3.9). Tried as well to install python 3.9 and set it up on my parallel win 11 ,it will not work. Changed PC with windows on it ,it works great haha

@mnomoko
Copy link

mnomoko commented Apr 13, 2024

I faced the same issue !
On Mac OS you have python installed for Xcode settings. The installed version was python 3.9, but for a mysterious reason I had an error.

I used Homebrew to install and test differents versions of python but nothing changed.
So I installed "pyenv" (still from Homebrew) and manage my python's versions within instead of using Homebrew directly to install or link python.
To resolve my problem I installed python v3.9.18 and that's all. I do not modifIed nothing else.

My hypothesis is that the version of python from Xcode is a minimal version or a version that is too old

@rodrigom03
Copy link

Like i say in first post, i am with macos and the error is with 2.16 tensorflow, after that i downgrade python to 3.9.6 and try to reinstall with tensorflow 2.9.1 but same error like this: ERROR: Could not find a version that satisfies the requirement tensorflow==2.9.1 (from versions: 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0, 2.13.1, 2.14.0rc0, 2.14.0rc1, 2.14.0, 2.14.1, 2.15.0rc0, 2.15.0rc1, 2.15.0, 2.15.1, 2.16.0rc0, 2.16.1) ERROR: No matching distribution found for tensorflow==2.9.1

Same error here. macOS M2 and I can't figure out a solution. installed pyenv and made the v3.9.18 global and still does not work. You got the solution?

@8maradona8
Copy link
Author

No, still cant run it, try to reinstall everything fresh, but same error :(

@Calin96
Copy link

Calin96 commented Apr 20, 2024

Fix that I’ve found that it works is:
Change to a non-mac laptop. I have this already running on my other win laptop.

@rodrigom03
Copy link

Yes you’re right. Yesterday after endlessly trying to make it work on Mac, just switched to a Windows laptop and worked perfectly.

@rodrigom03
Copy link

Got the solution for Mac users! Use this command:

pip install tensorflow-macos==2.9.1

@KnightRider37
Copy link

Got the solution for Mac users! Use this command:

pip install tensorflow-macos==2.9.1

worked like a charm! thanks!

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

8 participants