gpt4 book ai didi

Python - GUI2EXE - 属性错误 : 'module' object has no attribute 'Popen'

转载 作者:太空宇宙 更新时间:2023-11-04 06:14:31 25 4
gpt4 key购买 nike

我使用 Python 2.7 和 py2exe,最近我下载了 gui2exe 最新版本 (5.3)。但是当我尝试执行 gui2exe.py 文件时,它给了我一个错误:

AttributeError: 'module' object has no attribute 'Popen'

我研究了很多,但没有找到任何解决方案。

请帮忙。

最佳答案

看起来有些东西正在从标准库中屏蔽 subprocess.py。错误消息可能显示过时的路径。因此,在启动 GUI2exe.py 的目录中打开一个 Python shell,然后键入:

>>> import subprocess
>>> subprocess.__file__

这应该给你 'C:\Python27\lib\subprocess.pyc'。如果不是,则说明您发现了问题。不知何故,另一个 subprocess.py 进入了您的 PYTHONPATH。

关于Python - GUI2EXE - 属性错误 : 'module' object has no attribute 'Popen' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16596926/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com