我在玩利用os.spawnlp的entangled。我目前运行的是python2.7.2。在
这是我得到的错误。在
Traceback (most recent call last): File "create_network.py", line 47, in nodes.append(os.spawnlp(os.P_NOWAIT, 'python', 'python py', str(startPort))) AttributeError: 'module' object has no attribute 'spawnlp'
我如何着手解决这个问题?似乎没有任何迹象表明spawnlp
是在版本1.6中首次添加后被删除的。在
我已经重新下载了windows python安装程序,并使用修复选项运行了它。我唯一能想到的可能是这台计算机是64位的,而python版本是32位的。。。我不认为这是问题,但这是我唯一能想到的。。。在
最后,its recommended to use the subprocess module rather than the os.spawn*
在python documentation中,它声明
实际上,您必须使用另一个模块来创建子流程。在
相关问题 更多 >
编程相关推荐