关于keras安装成功调用失败问题

使用
conda install keras-gpu
安装默认版本为2.3.1
调用失败显示ImportError: cannot import name ‘PrecisionAtRecall’ from ‘tensorflow.python.keras.metrics’ (C:\Users\asd45\Anaconda3\envs\tf2.0\lib\site-packages\tensorflow_core\python\keras\metrics.py)即无法调用召回率
打开Prompt输入import keras 报错
h5py is running against HDF5 1.10.5 when it was built against 1.10.4…
后由大神指点pip install h5py==2.9.0 -i https://pypi.tuna.tsinghua.edu.cn/simple/

后安装keras
pip install keras==2.3.1 -i https://pypi.tuna.tsinghua.edu.cn/simple/
Successfully installed keras-2.3.1

你可能感兴趣的:(关于keras安装成功调用失败问题)