data-validation icon indicating copy to clipboard operation
data-validation copied to clipboard

Installation of tensorflow data validation still failing for mac m2 chips?

Open greyxray opened this issue 1 year ago • 1 comments

This is a reiteration of closed issue

to my understanding this has been already fixed for m1/m2 chips in #251

But I still can't install it on my m2 chip (could the newer OS be the problem?). I did:

brew install bazel
pyenv virtualenv 3.10.12 tfdvenv
pyenv activate tfdvenv
pip install numpy apache-beam pyarrow tensorflow # tried both with and w/o this install
pip install tensorflow-data-validation

Errors seen:

ERROR: Could not find a version that satisfies the requirement tensorflow-data-validation (from versions: none)
ERROR: No matching distribution found for tensorflow-data-validation

I also tried to pip-install nightly version and build from docker but both didn't work. The docker approach failed with Server terminated abruptly (error code: 14, error message: 'Socket closed', log file: '/root/.cache/bazel/_bazel_root/7b7747ec045ae606eb720a1222f56098/server/jvm.out') - not sure what's that about.

I am wondering if anyone else can reproduce the problem? Or is there a known combination of package/python versions that works for m2 that you know of?

System: Apple macbook M2 Pro macOS Sonoma 14.2.1 with M2 chip Python 3.10.12 (same result with 3.9.18 and 3.11.7)

greyxray avatar Feb 15 '24 20:02 greyxray

Hi @caveness, Installing TFDV on Mac results in below error. I am also getting the same error below. Please let us know if we are missing something or how we can overcome this issue. Thanks.

(py310) singhniraj-macbookpro:~ singhniraj$ pip install tensorflow-data-validation
ERROR: Could not find a version that satisfies the requirement tensorflow-data-validation (from versions: none)
ERROR: No matching distribution found for tensorflow-data-validation
(py310) singhniraj-macbookpro:~ singhniraj$ export TFX_DEPENDENCY_SELECTOR=NIGHTLY
(py310) singhniraj-macbookpro:~ singhniraj$ pip install --extra-index-url https://pypi-nightly.tensorflow.org/simple tensorflow-data-validation
Looking in indexes: https://pypi.org/simple, https://pypi-nightly.tensorflow.org/simple
ERROR: Could not find a version that satisfies the requirement tensorflow-data-validation (from versions: none)
ERROR: No matching distribution found for tensorflow-data-validation

singhniraj08 avatar Mar 05 '24 11:03 singhniraj08