AttributeError: 'module' object has no attribute 'fork' 切记:windows内核中没有os.fork()函数
2017-02-28 13:07
531 查看
AttributeError: ‘module’ object has no attribute ‘fork’ windows内核中没有os.fork()函数
错误提示“AttributeError: ‘module’ object has no attribute ‘fork’”
搜索半天,出现该问题的原因在于windows的内核中没有
window中:
linux中:
可见,windows中没有os.fork。
错误提示“AttributeError: ‘module’ object has no attribute ‘fork’”
搜索半天,出现该问题的原因在于windows的内核中没有
os.fork()函数,放到linux中运行正常。
window中:
C:\Users\lenovo>python Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.fork Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'fork' >>>
linux中:
C:\Users\lenovo>python Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.fork Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'fork' >>>
可见,windows中没有os.fork。
相关文章推荐
- AttributeError: module 'networkx' has no attribute 'draw_graphviz'解决方案
- AttributeError: 'module' object has no attribute 'fullmatch'.
- AttributeError: 'module' object has no attribute 'LabelMap'
- AttributeError: 'module' object has no attribute 'text_format'
- AttributeError: 'module' object has no attribute 'text_format'
- 使用旧版本tensorflow出现了negative等报错的问题,AttributeError: 'module' object has no attribute 'xxx'"
- AttributeError: 'module' object has no attribute 'text_format'
- 【TensorFlow问题】AttributeError:'module' object has no attribute 'mul'
- python AttributeError: 'module' object has no attribute 'setdefaultencoding'
- [置顶] AttributeError: 'module' object has no attribute '_base' 可行解决办法
- AttributeError: ‘module’ object has no attribute ‘load_dotenv
- AttributeError: 'module' object has no attribute '_base' 可行解决办法
- python AttributeError: 'module' object has no attribute 'dumps'解决办法
- Keras深度学习框架学习笔记(3) - AttributeError:’module’ object has no attribute ‘ifelse’错误信息的解决方法
- AttributeError: 'module' object has no attribute 的解决方法
- python fork Windows平台下没有这个函数
- AttributeError: 'module' object has no attribute 'text_format'
- AttributeError: 'module' object has no attribute 'text_format'
- 关于 AttributeError: module 'os' has no attribute 'fork' 问题
- AttributeError: 'module' object has no attribute 'Serial'