text icon indicating copy to clipboard operation
text copied to clipboard

Unable to build locally on MacOS with Intel CPU

Open shkarupa-alex opened this issue 1 year ago • 1 comments

Starting from TF 2.17 there is no more builds for MacOS with Intel CPU available via PyPi. But TF Text package uses internal scripts to install TF from PyPi.

As result i have locally built and installed TF. But when i try to build TF Text, it downloads latest available TF version (2.16) and builds against it.

shkarupa-alex avatar Oct 29 '24 14:10 shkarupa-alex

The only way i could solve that: replace "tensorflow" in oss_scripts/pip_package/requirements.in with

tensorflow @ file://localhost/Users/alex/Builds/tensorflow/tensorflow-2.18.0-cp311-cp311-macosx_14_0_x86_64.whl

shkarupa-alex avatar Oct 30 '24 05:10 shkarupa-alex