多处理不起作用(oserror:[Errno 22] Invalid argument)

multiprocessing not working (oserror:[Errno 22] Invalid argument )(多处理不起作用(oserror:[Errno 22] Invalid argument))
本文介绍了多处理不起作用(oserror:[Errno 22] Invalid argument)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我正在使用 python3.5.2,我正在尝试学习多处理,但它对我不起作用它没有显示任何错误或任何事情它只是正常完成程序而没有做任何我已经问过的事情如果您想查看我的问题以了解更多详细信息,请在此处

解决方案

有关为什么需要 if __name__ == '__main__': 部分的说明,请参阅编程指南.

<块引用>

Python 文档 安全导入主模块

i am using python3.5.2 and i am trying to learn about multiprocessing but it doesn't work for me it doesn't show me any error or any thing it just finish the program normally with out doing anything i already asked about this if you want to see my question for more details

multiprocessing don't start

i tried everything and all the time is the same problem when i searched i found lot of people having the same problem every one was telling them that its the IDLE problem so i tried and i opened the python file with out the IDLE and now thankfully i had error message but i am beginner so i couldn't understand what is the problem , here is the problem :

解决方案

For an explanation of why the if __name__ == '__main__': part is necessary, see Programming guidelines.

Python Documentation Safe importing of main module

这篇关于多处理不起作用(oserror:[Errno 22] Invalid argument)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

build conda package from local python package(从本地 python 包构建 conda 包)
How can I see all packages that depend on a certain package with PIP?(如何使用 PIP 查看依赖于某个包的所有包?)
How to organize multiple python files into a single module without it behaving like a package?(如何将多个 python 文件组织到一个模块中而不像一个包一样?)
Check if requirements are up to date(检查要求是否是最新的)
How to upload new versions of project to PyPI with twine?(如何使用 twine 将新版本的项目上传到 PyPI?)
Why #egg=foo when pip-installing from git repo(为什么从 git repo 进行 pip 安装时 #egg=foo)