Python 属性错误:模块';tensorflow_core.compat.v2';没有属性'__内部';(一周前工作过?)
我在Google Colab上工作,对Python没有太多经验。上图中的代码来自 EQTransformer安装的成套设备包括:Python 属性错误:模块';tensorflow_core.compat.v2';没有属性'__内部';(一周前工作过?),python,tensorflow,Python,Tensorflow,我在Google Colab上工作,对Python没有太多经验。上图中的代码来自 EQTransformer安装的成套设备包括: EQTransformer-0.1.59 SecretStorage-3.3.1 cryptography-3.4.7 gast-0.2.2 h5py-2.10.0 jeepney-0.6.0 keras-2.3.1 keras-applications-1.0.8 keyring-23.0.1 pkginfo-1.7.0 te
EQTransformer-0.1.59
SecretStorage-3.3.1
cryptography-3.4.7
gast-0.2.2
h5py-2.10.0
jeepney-0.6.0
keras-2.3.1
keras-applications-1.0.8
keyring-23.0.1
pkginfo-1.7.0
tensorboard-2.0.2
tensorflow-2.0.0
tensorflow-estimator-2.0.1
tqdm-4.48.0
运行EQTransformer安装时,我还遇到一个错误
ERROR: tensorflow-probability 0.12.1 has requirement gast>=0.3.2, but you'll have gast 0.2.2 which is incompatible.
我曾尝试安装较新的gast,但Tensorflow 2.0需要较旧的gast。
我还尝试安装tensorflow probability 0.9.0以与0.2.2 gast兼容,但仍然存在相同的错误。!pip安装tensorflow==1.15.0 ! pip每晚卸载keras ! pip安装keras==2.0.8 像这样