python安装tensorflow出现的问题

问题描述:
先前安装的是tensorflow-gpu(1.1.0)
1.module ‘tensorflow.python.ops.nn’ has no attribute ‘leaky_relu’
2.module ‘matplotlib’ has no attribute
解决方案
1.tensorflow的版本没有‘leaky_relu’函数
使用国内镜像下载安装,指令
下载keras镜像安装

pip install tensorflow-gpu==1.4.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install keras==2.1.2 -i https://pypi.tuna.tsinghua.edu.cn/simple

2.PyCharm出现module ‘matplotlib’ has no attribute ‘verbose’解决方案

在File -> settings -> Tools -> Python Scientific 将勾去掉。

猜你喜欢

转载自blog.csdn.net/qq_34510308/article/details/80103494