Python 错误整理:AttributeError: _flags(1)
来源:互联网 发布:苹果电脑强制装windows 编辑:程序博客网 时间:2024/06/03 19:12
错误为:
Parameters:
Traceback (most recent call last):File "F:\eclipse\workspace\TensorFlowProject\cnn_TEXT\train.py", line 39, in <module>
for attr, value in sorted(FLAGS._flags.items()):
File "F:\Anaconda3\lib\site-packages\tensorflow\python\platform\flags.py", line 58, in __getattr__
raise AttributeError(name)
AttributeError: _flags
翻译为:
参数:
回溯(最近一次通话最后):
第39行的文件“F:\ eclipse \ workspace \ TensorFlowProject \ cnn_TEXT \ train.py”位于<module>
对于attr,排序后的值(FLAGS._flags.items()):
在__getattr__文件“F:\ Anaconda3 \ lib \ site-packages \ tensorflow \ python \ platform \ flags.py”,第58行
引发AttributeError(名称)
AttributeError:_flags
解决办法:
其实错误是flags前面的下划线错误,语法规定__flags(有两个下划线)
阅读全文
0 0
- Python 错误整理:AttributeError: _flags(1)
- python 错误: AttributeError: _strptime
- Python中的AttributeError错误的常见原因
- [python错误]builtins.AttributeError: 'module' object has no attribute 'request'
- python 错误解析 AttributeError: 'module' object has no attribute 'dumps'
- Python 错误:AttributeError: 'module' object has no attribute
- Python错误AttributeError: 'module' object has no attribute 'copy'
- Python错误整理
- Python:AttributeError: 问题
- Python:AttributeError: 问题
- python AttributeError属性异常
- python 调试Django程序时错误 "AttributeError: 'module' object has no attribute 'Shell'"
- python爬虫时 AttributeError: 'NoneType' object has no attribute 'children'错误提示
- python 提示错误AttributeError: type object 'str' has no attribute '_name_'
- python机器学习实战3.2提示错误AttributeError: type object 'str' has no attribute '_name_'
- Python报错——错误“AttributeError:'builtin_function_or_method' object has no attribute 'sleep'”
- 警告错误整理(1)
- Python脚本报错AttributeError: ‘module’ object has no attribute ’urllibopen'(Python 2.7.11 )
- 近期计划
- 学习github的网站
- 动态规划之投资问题
- python调用hanlp分词
- 每天一道LeetCode-----将用数组表示的整数加一,两个用字符串表示的(二进制)数相加
- Python 错误整理:AttributeError: _flags(1)
- 基因大数据分析的云计算实践
- HDU 2087 剪花布条(KMP)
- python版 —— 验证码校验 打码兔平台的使用介绍
- HttpClient MultipartEntityBuilder 上传文件
- 配置高性能ElasticSearch集群的9个小贴士<重要>
- 【review 代码】
- linux文件系统一---磁盘挂载的学习
- 4 年阿里前端,2 年 CTO,一个程序员六年的奋斗史