问题:
runfile(‘C:/Users/…/Desktop/untitled4.py’, wdir=‘C:/Users/…/Desktop’)
Traceback (most recent call last):

File “”, line 1, in
runfile(‘C:/Users/…/Desktop/untitled4.py’, wdir=‘C:/Users/…/Desktop’)

File “D:\python\anaconda\lib\site-packages\spyder\utils\site\sitecustomize.py”, line 710, in runfile
execfile(filename, namespace)

File “D:\python\anaconda\lib\site-packages\spyder\utils\site\sitecustomize.py”, line 101, in execfile
exec(compile(f.read(), filename, ‘exec’), namespace)

File “C:/Users/…/Desktop/untitled4.py”, line 9, in
from keras import models, layers ,regularizers

File “D:\python\anaconda\lib\site-packages\keras_init_.py”, line 5, in
from . import applications

File “D:\python\anaconda\lib\site-packages\keras\applications_init_.py”, line 13, in
keras_applications.set_keras_submodules(

AttributeError: module ‘keras_applications’ has no attribute 'set_keras_submodules’

解决方法:
pip install --upgrade keras==2.1.6

AttributeError: module ‘keras_applications‘ has no attribute相关推荐

  1. 解决: AttributeError: module 'cv2' has no attribute 'SURF'

    AttributeError: module 'cv2' has no attribute 'SURF' 遇到该问题时,网友多是建议补个包,即pip install opencv-contrib-py ...

  2. AttributeError: module ‘seaborn‘ has no attribute ‘tsplot‘

    AttributeError: module 'seaborn' has no attribute 'tsplot' 问题: g = sns.tsplot(df['pm2.5']) plt.figur ...

  3. AttributeError: module ‘tensorflow‘ has no attribute ‘Session‘错误解决

    AttributeError: module 'tensorflow' has no attribute 'Session'错误解决 根据网上教程安装tensorflow环境时,最后都会有个测试代码用 ...

  4. Python 报错解决:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

    早上升级完pip,后报错如下: -> # pip install --upgrade pwntools /usr/local/lib/python2.7/dist-packages/pip/_v ...

  5. AttributeError: module ‘sys‘ has no attribute ‘maxint‘

    AttributeError: module 'sys' has no attribute 'maxint' https://stackoverflow.com/questions/47027354/ ...

  6. AttributeError: module 'tensorflow' has no attribute 'random_normal'

    执行<TensorFlow实战Google深度学习框架(第2版)>only源代码 CH3 时如下语句报错 batch_size = 8 w1= tf.Variable(tf.random_ ...

  7. Python3 AttributeError: module 'cv2' has no attribute 'SIFT'

    参考 https://blog.csdn.net/yuxuan_08/article/details/87966840 在用python3使用sift = cv2.SIFT()进行SIFT时候,可能会 ...

  8. Python3异常-AttributeError: module ‘sys‘ has no attribute ‘setdefaultencoding‘

    Python3异常-AttributeError: module 'sys' has no attribute 'setdefaultencoding' 参考文章: (1)Python3异常-Attr ...

  9. 问题解决——AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘

    问题解决--AttributeError: module 'tensorflow' has no attribute 'placeholder' 参考文章: (1)问题解决--AttributeErr ...

最新文章

  1. 如何在AjaxPro.net的AjaxMethod中使用session和cookie
  2. FreeRTOS学习笔记——互斥型信号量
  3. qt如何实现backspace的功能_如何实现知识星球列表拖拽功能
  4. multiprocessing.manager管理的对象需要加锁吗_iOS内存管理布局及管理方案理论篇
  5. CLient-Initiated L2TP主机上网问题详解
  6. C# ManualResetEvent和AutoResetEvent 使用笔记
  7. RxBus的使用及解析
  8. 简单 黑苹果dsdt教程_提取DSDT和SSDT教程
  9. Hulu推荐:小众又新颖的综艺
  10. 消除六边形html5,六边形消除
  11. 码农如何克服“职业病”
  12. [jzoj 4246] 【五校联考6day2】san {spfa+dfs/spfa+拓扑排序+dp}
  13. Windows ActiveMq开机自启动设置
  14. 怀念王选,怀念北大计算机研究所
  15. 合规性对区块链项目的重要性
  16. zabbix监控客户端时前端配置不成功
  17. SEO全攻略:中小企业新站SEO优化应该怎么做_刘小虎SEO博客
  18. VoLTE常用12大知识点
  19. odoo13 订单模板设置_Odoo + Anodoo功能介绍13-SaaS公司如何定义在线销售的订阅产品...
  20. [转]孝心无价--毕淑敏

热门文章

  1. 3U VPX XC7VX690T计算处理板
  2. 【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + DHT11 +NodeJs本地服务+ MySQL数据库
  3. 实现简单的增删改查(Asp.Net MVC+Layui)
  4. 贵州大学计算机研究生排名,贵大计算机研究生怎么样?
  5. 北亚工程师详解数据恢复中RAID6结构
  6. 金仓数据库KingbaseES数据库参考手册(服务器配置参数14. 版本和平台兼容性)
  7. maven报错one of its dependencies could not be resolved
  8. 百度用AI“唤醒”历史,中国文化名片与科技名片相互成就
  9. vtk中画几何图形存储为vtk文件并在窗口显示
  10. Personalized Top-N Sequential Recommendation via Convolutional Sequence Embedding