Installing tensorflow_data_validation is causing error #tensorflow_data_validation.

huangapple go评论69阅读模式
英文:

Installing tensorflow_data_validation is causing error #tensorflow_data_validation

问题

我尝试安装tensorflow_data_validation,但出现以下错误。

它说我需要Python版本2.7或3.4+,但我正在使用版本3.10.9。

另外,我有tensorflow的2.11.0版本。

有人知道如何解决这个问题吗?

谢谢提前帮助。

#tensorflow_data_validation #tensorflow_data_validation

在jupyter笔记本中尝试安装
在cmd中安装

我已经尝试在cmd和jupyter笔记本中安装它,但两种方式都不起作用。

英文:

I'm trying to install tensorflow_data_validation but it shows the below error.

it says that i need Python version 2.7 or 3.4+ but I'm using the version 3.10.9.

Also I have the 2.11.0 version of tensorflow

Does anybody know how to fix this issue?

Thanks in advice

#tensorflow_data_validation #tensorflow_data_validation

trying to install it in jupyter notebook
installing it in cmd

I have tried to install it in cmd and jupyter notebook but it doesn't work in both ways

答案1

得分: 1

Firstly, the package only promises support for Python 3.8 and 3.9 under the most recent release (April 2023).

Secondly, installation requires specific dependencies that may not all match simultaneously with your Python too.

I experienced the same issue under the Kaggle docker image which brings Python 3.10.

But I was able to install tensorflow-data-validation under Python 3.7 though, using their nightly packages. Here is the terminal screen of the installation done in a virtual environment:

(.test) (base) maciej.skorski@kaggle-cpu-maciej:~$ python --version
Python 3.7.12
(.test) (base) maciej.skorski@kaggle-cpu-maciej:~$ export TFX_DEPENDENCY_SELECTOR=NIGHTLY
(.test) (base) maciej.skorski@kaggle-cpu-maciej:~$ pip install --extra-index-url https://pypi-nightly.tensorflow.org/simple tensorflow-data-validation --quiet
WARNING: You are using pip version 20.1.1; however, version 23.1.2 is available.
You should consider upgrading via the '/home/maciej.skorski/.test/bin/python -m pip install --upgrade pip' command.
(.test) (base) maciej.skorski@kaggle-cpu-maciej:~$ pip show tensorflow-data-validation
Name: tensorflow-data-validation
Version: 1.12.0
Summary: A library for exploring and validating machine learning data.
Home-page: https://www.tensorflow.org/tfx/data_validation/get_started
Author: Google LLC
Author-email: tensorflow-extended-dev@googlegroups.com
License: Apache 2.0
Location: /home/maciej.skorski/.test/lib/python3.7/site-packages
Requires: tensorflow, six, pyfarmhash, joblib, apache-beam, absl-py, pyarrow, protobuf, tensorflow-metadata, tfx-bsl, pandas, numpy
英文:

Firstly, the package only promises support for Python 3.8 and 3.9 under the most recent release (April 2023). Secondly, installation requires specific dependencies that may not all match simultaneously with your Python too.

I experienced the same issue under the Kaggle docker image which brings Python 3.10.

But I was able to install tensorflow-data-validation under Python 3.7 though, using their nightly packages. Here is the terminal screen of the installation done in a virtual environment:

(.test) (base) maciej.skorski@kaggle-cpu-maciej:~$ python --version
Python 3.7.12
(.test) (base) maciej.skorski@kaggle-cpu-maciej:~$ export TFX_DEPENDENCY_SELECTOR=NIGHTLY
(.test) (base) maciej.skorski@kaggle-cpu-maciej:~$ pip install --extra-index-url https://pypi-nightly.tensorflow.org/simple tensorflow-data-validation --quiet
WARNING: You are using pip version 20.1.1; however, version 23.1.2 is available.
You should consider upgrading via the '/home/maciej.skorski/.test/bin/python -m pip install --upgrade pip' command.
(.test) (base) maciej.skorski@kaggle-cpu-maciej:~$ pip show tensorflow-data-validation
Name: tensorflow-data-validation
Version: 1.12.0
Summary: A library for exploring and validating machine learning data.
Home-page: https://www.tensorflow.org/tfx/data_validation/get_started
Author: Google LLC
Author-email: tensorflow-extended-dev@googlegroups.com
License: Apache 2.0
Location: /home/maciej.skorski/.test/lib/python3.7/site-packages
Requires: tensorflow, six, pyfarmhash, joblib, apache-beam, absl-py, pyarrow, protobuf, tensorflow-metadata, tfx-bsl, pandas, numpy

huangapple
  • 本文由 发表于 2023年5月11日 03:45:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76222095.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定