1

在笔记本中,当我跑步时

!pip3 install tensorflow-transform==0.15.0

我收到一个错误:

Collecting tensorflow-transform==0.15.0
  Using cached https://files.pythonhosted.org/packages/34/88/9ee55045a1ffbf44fb75b10a30c54609f58987987f69ace9b971938e750d/tensorflow-transform-0.15.0.tar.gz
Requirement already satisfied: absl-py<0.9,>=0.7 in /usr/local/lib/python3.5/dist-packages (from tensorflow-transform==0.15.0)
Requirement already satisfied: apache-beam[gcp]<3,>=2.16 in ./.local/lib/python3.5/site-packages (from tensorflow-transform==0.15.0)
Requirement already satisfied: numpy<2,>=1.16 in /usr/local/lib/python3.5/dist-packages (from tensorflow-transform==0.15.0)
Requirement already satisfied: protobuf<4,>=3.7 in /usr/local/lib/python3.5/dist-packages (from tensorflow-transform==0.15.0)
Requirement already satisfied: pydot<2,>=1.2 in /usr/local/lib/python3.5/dist-packages (from tensorflow-transform==0.15.0)
Requirement already satisfied: six<2,>=1.10 in /usr/local/lib/python3.5/dist-packages (from tensorflow-transform==0.15.0)
Collecting tensorflow-metadata<0.16,>=0.15 (from tensorflow-transform==0.15.0)
  Using cached https://files.pythonhosted.org/packages/bd/00/f353385e40f7962b63b94d17f7050b5853bc20c243483cff0cb3da03d206/tensorflow_metadata-0.15.1-py2.py3-none-any.whl
Requirement already satisfied: tensorflow<2.2,>=1.15 in /usr/local/lib/python3.5/dist-packages (from tensorflow-transform==0.15.0)
Collecting tfx-bsl<0.16,>=0.15 (from tensorflow-transform==0.15.0)
  Could not find a version that satisfies the requirement tfx-bsl<0.16,>=0.15 (from tensorflow-transform==0.15.0) (from versions: )
No matching distribution found for tfx-bsl<0.16,>=0.15 (from tensorflow-transform==0.15.0)

这是在笔记本实例中运行时的错误。

注意我正在使用

tensorflow==2.0.0
tensorflow-estimator==2.0.0
tensorflow-hub==0.6.0
tensorflow-probability==0.7.0
tensorflow-serving-api==1.14.0
apache-beam==2.16.0
4

1 回答 1

1

这可能发生在旧pip版本中,这些版本显然无法将tfx-bsl轮子识别为兼容。

我有同样的问题,并得到解决只是更新pip

sudo pip3 install --upgrade pip

(当然最好是pip在笔记本本身的源图像中已经有一个稍后。)

于 2019-11-19T18:54:46.813 回答