Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/325.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 Pyinstaller出现致命错误,无法执行脚本bot_Python_Python 3.x_Pyinstaller_Exe - Fatal编程技术网

Python Pyinstaller出现致命错误,无法执行脚本bot

Python Pyinstaller出现致命错误,无法执行脚本bot,python,python-3.x,pyinstaller,exe,Python,Python 3.x,Pyinstaller,Exe,该程序作为Python脚本(.py文件)运行良好,但在使用Pyinstaller将其转换为Windows可执行文件(.exe文件)时无法运行。 Pyinstaller不断给我错误:检测到致命错误。无法执行脚本bot。我查看了其他一些帖子,但它们没有帮助我 注意:我做了pyinstaller-w-F--onefile bot.py欢迎使用stackoverflow。请花时间在问题中使用正确的标点符号和格式。这类帖子看起来很不专业。如果不看实际代码,很难判断问题出在哪里;这种类型的错误可能是您的脚本

该程序作为Python脚本(.py文件)运行良好,但在使用Pyinstaller将其转换为Windows可执行文件(.exe文件)时无法运行。 Pyinstaller不断给我错误:
检测到致命错误。无法执行脚本bot。
我查看了其他一些帖子,但它们没有帮助我


注意:我做了
pyinstaller-w-F--onefile bot.py

欢迎使用stackoverflow。请花时间在问题中使用正确的标点符号和格式。这类帖子看起来很不专业。如果不看实际代码,很难判断问题出在哪里;这种类型的错误可能是您的脚本有问题(即代码中有错误,比如没有正确包含依赖项),而不是
pyinstaller
的问题,因为您正在运行的代码确实应该可以工作。顺便说一下,
-F
-onefile
是一回事。我建议现在不要使用
-w
进行调试,直到找到并更正错误。