我需要在 Google colab 中测试 tf2 不支持的代码(因为 tf2 不支持 tf.ceil),所以我想在 1.14 版中安装 tensorflow。我使用 pip3 和 pip 来安装 tensorflow,它们都成功安装了 tf,但是当我这样做时:
import tensorflow as tf
tf.__version__
Run Code Online (Sandbox Code Playgroud)
它返回:
'2.2.0-rc3'
Run Code Online (Sandbox Code Playgroud)
我有明确的 sys.path:
import sys
sys.path
Run Code Online (Sandbox Code Playgroud)
它返回:
[]
Run Code Online (Sandbox Code Playgroud)
如何在 1.14 版中安装 tensorflow?