在笔记本电脑中,当我运行时
!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)
这是在Notebook实例中运行时出现的错误。
注意:我正在使用
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
这可能发生在旧的pip
版本中,这些版本显然无法识别tfx-bsl
轮子是否兼容。
我也遇到了同样的问题,只更新了pip
:就解决了
sudo pip3 install --upgrade pip
(当然,最好是在笔记本本身的源图像中已经有一个稍后的pip
。(