Open iislucas opened 5 months ago
Which Python version are you using? The requirements.txt file is pinned to Python v3.10
Oh... I just saw the Apple M1 architecture note. That's the problem. We've pinned to older versions of TF and TF Text and they don't support M-chips, only x86 AFAIK, so the Docker image is probably being built to target ARM and failing to find anything compatible on PyPI. Will investigate further.
lol, read the error Lucas! (I'm was using the default python installed by homebrew, 3.12)
I guess maybe we can improve the readme to make that dependency clearer ahead of time, so that the default setup on a modern machine doesn't error, e.g. by setting the command python3.10
instead of just python3.10
?
Your guess was right, even with python 3.10 MacBook m1 install gives this error:
ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10; 1.8.0 Requires-Python >=3.11
ERROR: Could not find a version that satisfies the requirement tensorflow==2.10.0 (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.10.0
Yeah... I'm working on Py3.11-3.12 support for v1.2. This will include relaxing some dependencies that will allow running examples on M-chips. We're running into some version conflicts internally though so this may take a few more weeks to resolve.
@iislucas I think that the dependency changes in https://github.com/PAIR-code/lit/pull/1364 will address the Apple Silicon incompatibilities, but I still need to verify that.
(MacBook Pro M1 2021. MacOS-14.4 + Docker - 4.28.0 (139021))
Following: https://github.com/pair-code/lit?tab=readme-ov-file#build-container-image