kochlisGit/ProphitBet-Soccer-Bets-Predictor

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

8maradona8 opened this issue · 16 comments

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!

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

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

ok. then download python 3.9. It should work!

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

For me, situation is the same

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

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

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

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

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?

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

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.

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

Got the solution for Mac users! Use this command:

pip install tensorflow-macos==2.9.1