今天我跑了一个别人的深度学习模型,发现了一个奇怪的问题,查了一下原来makedirs()在python 2.x和python3.x有点区别,又是版本问题,遇见错误了,那么我就把它记录下来。

totalMemory: 1.95GiB freeMemory: 1.64GiB
2018-04-18 14:41:49.042748: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1120] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce GTX 760, pci bus id: 0000:01:00.0, compute capability: 3.0)
Traceback (most recent call last):File "deepFM.py", line 429, in <module>run()File "deepFM.py", line 425, in runsingle_run(feature_cnt, field_cnt, params)File "deepFM.py", line 183, in single_runos.makedirs(model_path, exist_ok=True)
TypeError: makedirs() got an unexpected keyword argument 'exist_ok'

把python2换成python3就完了。

python3 deepFM.py

参考文献

[1].makedirs() got an unexpected keyword argument 'exist_ok.

https://github.com/bamos/dcgan-completion.tensorflow/issues/20

TypeError: makedirs() got an unexpected keyword argument 'exist_ok'相关推荐

  1. TypeError: __init__() got an unexpected keyword argument #34serialized_options #34

    TypeError: __init__() got an unexpected keyword argument 'serialized_options' TypeError: __init__() ...

  2. flask_sqlalchemy连接Mysql报TypeError: create_engine() got an unexpected keyword argument 'encoding'解决办法

    最近在使用flask_sqlalchemy连接mysql,但是遇到一个很奇葩的问题,代码如下: #-*-coding:utf-8 -*-from flask_sqlalchemy import SQL ...

  3. 成功解决TypeError: read_excel() got an unexpected keyword argument ‘parse_cols or ‘sheetname‘

    成功解决TypeError: read_excel() got an unexpected keyword argument 'parse_cols' TypeError: read_excel() ...

  4. 成功解决TypeError: take() got an unexpected keyword argument ‘fill_value‘

    成功解决TypeError: take() got an unexpected keyword argument 'fill_value' 目录 解决问题 解决思路 解决方法 解决问题 Traceba ...

  5. 成功解决return tf.nn.softmax(x, axis=axis) TypeError: softmax() got an unexpected keyword argument 'axis

    成功解决return tf.nn.softmax(x, axis=axis) TypeError: softmax() got an unexpected keyword argument 'axis ...

  6. 成功解决python\ops\seq2seq.py TypeError: ms_error() got an unexpected keyword argument 'logits'

    成功解决python\ops\seq2seq.py  TypeError: ms_error() got an unexpected keyword argument 'logits' 目录 解决问题 ...

  7. 成功解决python\ops\seq2seq.py TypeError: ms_error() got an unexpected keyword argument 'labels'

    成功解决python\ops\seq2seq.py TypeError: ms_error() got an unexpected keyword argument 'labels' 目录 解决问题 ...

  8. 成功解决TypeError: __init__() got an unexpected keyword argument 'indices'

    成功解决TypeError: __init__() got an unexpected keyword argument 'indices' 目录 解决问题 解决思路 解决方法 解决问题 TypeEr ...

  9. 成功解决TypeError: __init__() got an unexpected keyword argument 'n_iterations'

    成功解决TypeError: __init__() got an unexpected keyword argument 'n_iterations' 目录 解决问题 解决思路 解决方法 解决问题 T ...

最新文章

  1. Matlab 快捷键 设置
  2. 记一次Quartz重复调度(任务重复执行)的问题排查
  3. 华为IPSEC-×××-典型配置举例1-采用手工方式建立IPsec 安全隧道
  4. 应用程序池超出其作业限制设置_网站改版注意事项 - 蜘蛛池
  5. 基于Linux的Socket编程之TCP全双工Server-Client聊天程序
  6. 微软亚马逊联手发布深度学习库Gluon,适合所有段位的炼丹师
  7. 漫游飞行_除了防打扰,手机飞行模式还有这些作用
  8. 【C#语言学习】学习一门语言
  9. Citrix Xendesktop虚拟化桌面和深信服VSP安全桌面的技术对比
  10. HTML5 web SQL 和indexedDB的使用
  11. QT学习笔记——06-Day15_C++_QT
  12. 卸载cad专用软件工具箱 一键安装卸载,安全可靠
  13. html5绘制圆形,Canvas绘制圆形
  14. 淘宝客微信机器人接口API开发
  15. 阿里云Landing Zone系列--2 资源目录之--多账号
  16. Shell脚本遍历指定网段的在线ip
  17. 惠民工程(2013中南大学研究生复试[最小生成树])
  18. linux hba卡 存储配置,Redhat安装hba卡,配置emc powerpath,配置LVM
  19. 计算机网络—学习笔记
  20. 《Saladict》谷歌!有道!我全都要! 聚合词典, 并行翻译

热门文章

  1. 【HAL库】STM32+ESP8266+Onenet+MQTT,极简工程,hal库移植。
  2. 网上支付平台接口使用总结
  3. Springboot 集成 AJ-Captcha 行为验证码实战 -- 验证码
  4. c语言做飞翔的小鸟简笔画图片大全,飞翔的小鸟简笔画图片大全
  5. java.lang.VerifyError: Verifier rejected class ...解决方案
  6. 如何学好电子电路维修技术
  7. 深圳市商务局关于开展第三批深圳市跨国公司总部企业认定的通知
  8. 19 个接私活平台,你有技术,就有钱!
  9. nginx php网站配置文件,PHP 网站修改默认访问文件的nginx配置
  10. 解决网页无法复制粘贴选中的问题 显示vip无法复制解决方案