Cannot not install tensorflow-text from source on darwin/arm64, because `Could not find requirement tensorflow-macos`
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.3k
- Forks
- 379
- Avg merge
- 3h 30m
- Merged PRs (30d)
- 8
Description
Descriptions
I already build and installed tensorflow through pip, and I can build tensorflow-text, but when I try to install it, it gave me error:
$ pip3 install tensorflow_text-2.12.0-cp311-cp311-macosx_11_0_arm64.whl
Processing ./tensorflow_text-2.12.0-cp311-cp311-macosx_11_0_arm64.whl
Requirement already satisfied: tensorflow-hub>=0.8.0 in /opt/homebrew/lib/python3.11/site-packages (from tensorflow-text==2.12.0) (0.13.0)
ERROR: Could not find a version that satisfies the requirement tensorflow-macos<2.13,>=2.12.0; platform_machine == "arm64" and platform_system == "Darwin" (from tensorflow-text) (from versions: none)
ERROR: No matching distribution found for tensorflow-macos<2.13,>=2.12.0; platform_machine == "arm64" and platform_system == "Darwin"
Idk why it require tensorflow-macos, since I already have tensorflow, and I have no idea how to install tensorflow-macos because it seems like doesn't have a arm64 version.
Environments
Commit: e3e9fcfa7fc90187a83fd3bf9ef71a5f91c18d45
$ python3 -V && echo '========' && pip3 -V
Python 3.11.2
========
pip 23.0.1 from /opt/homebrew/lib/python3.11/site-packages/pip (python 3.11)
$ bazel --version
bazel 5.3.0
$ clang --version
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
pip requirements
$ pip3 show tensorflow
Name: tensorflow
Version: 2.13.0
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: packages@tensorflow.org
License: Apache 2.0
Location: /opt/homebrew/lib/python3.11/site-packages
Requires: absl-py, astunparse, flatbuffers, gast, google-pasta, grpcio, h5py, jax, keras, libclang, numpy, opt-einsum, packaging, protobuf, setuptools, six, tensorboard, tensorflow-estimator, termcolor, typing-extensions, wrapt
Required-by:
$ pip3 show tensorflow-hub
Name: tensorflow-hub
Version: 0.13.0
Summary: TensorFlow Hub is a library to foster the publication, discovery, and consumption of reusable parts of machine learning models.
Home-page: https://github.com/tensorflow/hub
Author: Google LLC
Author-email: packages@tensorflow.org
License: Apache 2.0
Location: /opt/homebrew/lib/python3.11/site-packages
Requires: numpy, protobuf
Required-by:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported pip installation using tensorflow-text-2.12.0-cp311-cp311-macosx_11_0_arm64.whl on Darwin arm64, then inspect the wheel's dependency metadata and the TensorFlow package requirements. Done means the package can be installed with the reported tensorflow setup without an unavailable tensorflow-macos requirement, with a regression check for this platform.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, python, tensorflow
- Domain
- build-system, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100