我使用py2exe创建了我的Python项目的exe文件,其中包含许多文件。当我在我的系统中运行此exe文件时,它正常工作,但如果我将其放在另一个系统中,则会打开登录表单,之后它不会进入我在第二个Python文件中编写的下一个窗口。在日志文件中给出以下错误。
感谢您提前的支持。
Traceback (most recent call last):
File "login.py", line 246, in DataReader
File "subprocess.pyo", line 711, in __init__
File "subprocess.pyo", line 948, in _execute_child
WindowsError: [Error 2] The system cannot find the file specified
我知道这是一个重复的问题,但我已经尝试了stackoverflow上的许多解决方案,但我没有解决这个问题。有人能帮我解决这个问题吗?
成功登录后,它将通过以下代码转到start.py文件,但它没有执行并出现了上述错误。
subprocess.call(["python", "./start.py"])
感谢您提前的支持。