Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将python转换为exe文件时出现问题_Python_User Interface_Cmd_Pyinstaller - Fatal编程技术网

将python转换为exe文件时出现问题

将python转换为exe文件时出现问题,python,user-interface,cmd,pyinstaller,Python,User Interface,Cmd,Pyinstaller,我正在尝试将.py程序转换为.exe,但当该过程完成后,我打开dist文件夹并尝试执行它时,会出现“无法执行脚本‘filename’”。请给我一个解决办法。 我正在使用“pyinstaller--onefile-w filename.py”创建我的.exe文件 在pyinstaller命令中添加一个额外的参数--debug。当您单击exe文件执行错误时,这将提供有关错误的更多信息。这将有助于确定问题。路径中可能缺少一个文件请尝试将.exe文件从dist移动到根文件夹通过提供的链接,似乎已经有了解

我正在尝试将.py程序转换为.exe,但当该过程完成后,我打开dist文件夹并尝试执行它时,会出现“无法执行脚本‘filename’”。请给我一个解决办法。
我正在使用“pyinstaller--onefile-w filename.py”创建我的.exe文件

在pyinstaller命令中添加一个额外的参数--debug。当您单击exe文件执行错误时,这将提供有关错误的更多信息。这将有助于确定问题。路径中可能缺少一个文件

请尝试将.exe文件从dist移动到根文件夹

通过提供的链接,似乎已经有了解决方案。