doesn't seem to work in my case .. still unable to install tensorflow-text.. note that I tensorflow 2.12.0 on my M1 mac
export CC_OPT_FLAGS=-mavx
CC_OPT_FLAGS=-mavx
source oss_scripts/configure.sh
+++ uname -s
+++ tr A-Z a-z
++ osname=darwin
++ echo darwin
darwin
++ '[' -e .bazelrc ']'
+++ pip show tensorflow
WARNING: Package(s) not found: tensorflow
++ [[ '' == tensorflow ]]
+++ pip show tensorflow-macos
WARNING: Package(s) not found: tensorflow-macos
++ [[ '' == tensorflow-macos ]]
+++ pip show tf-nightly
WARNING: Package(s) not found: tf-nightly
++ [[ '' == tf-nightly ]]
++ echo 'Installing tensorflow.'
Installing tensorflow.
++ is_macos
++ [[ darwin == \d\a\r\w\i\n ]]
+++ arch
++ [[ xarm64 == x\a\r\m\6\4 ]]
++ pip install tensorflow-macos==2.9.0
ERROR: Could not find a version that satisfies the requirement tensorflow-macos==2.9.0 (from versions: 2.13.0rc0)
ERROR: No matching distribution found for tensorflow-macos==2.9.0
(nlp) mohamedshiha@Mohameds-MacBook-Pro text % pip install tensorflow_text-2.10.0-cp39-cp39-macosx_11_0_arm64.whl
WARNING: Requirement 'tensorflow_text-2.10.0-cp39-cp39-macosx_11_0_arm64.whl' looks like a filename, but the file does not exist
ERROR: tensorflow_text-2.10.0-cp39-cp39-macosx_11_0_arm64.whl is not a supported wheel on this platform.
(nlp) mohamedshiha@Mohameds-MacBook-Pro text %