AI·머신러닝·딥러닝

ERROR: Could not find a version that satisfies the requirement tensorflow_text (from versions: none) - macOS m2

무한열정 2024. 3. 14. 16:00

■ tensorflow-test 설치 오류

$ pip install tensorflow-text
ERROR: Could not find a version that satisfies the requirement tensorflow_text (from versions: none)
ERROR: No matching distribution found for tensorflow_text

 

 

■ macOS 환경

mac mini m2 깡통(8Core CPU + 10Core GPU) + 16G RAM 

macOS Sonoma 14.3.1

Anaconda v2023.09-0 (Python 패키지 관리)
Python v3.11
Tensorflow-macos v2.15.0
Tensorflow-metal v1.1.0

* 참고로 현재 macOS의 tensorflow 정보는 다음과 같다.

$ pip show tensorflow

Name: tensorflow
Version: 2.16.1
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: /Users/stevejobs/anaconda3/envs/tf-test-metal/lib/python3.11/site-packages
Requires: absl-py, astunparse, flatbuffers, gast, google-pasta, grpcio, h5py, keras, libclang, ml-dtypes, numpy, opt-einsum, packaging, protobuf, requests, setuptools, six, tensorboard, tensorflow-io-gcs-filesystem, termcolor, typing-extensions, wrapt
Required-by: tensorflow-text, tf_keras

 

■ 조치 방법

tensorflow-text Wheel Package파일을 수동으로 다운로드 받는다.

https://github.com/sun1638650145/Libraries-and-Extensions-for-TensorFlow-for-Apple-Silicon/releases

참고로 다음 파일을 다운로드 받았다.

tensorflow_text-2.16.1-cp311-cp311-macosx_11_0_arm64.whl

 

수동으로 Wheel Package를 설치한다.

$ pip install ~/Downloads/tensorflow_text-2.16.1-cp311-cp311-macosx_11_0_arm64.whl

..........

Installing collected packages: tensorflow-text
Successfully installed tensorflow-text-2.16.1