![](/img/trans.png)
[英]“Failed to execute script” when trying to run .exe file created by pyinstaller
[英]exe created with pyinstaller failed to execute
我正在尝试使用pyinstaller创建python脚本的.exe文件。 exe文件已成功创建,但是当我尝试运行它时,cmd给出错误:
导入错误:Astropy需要最低版本1.10的“六个”模块; 通常,它与astropy软件包捆绑在一起,因此,如果收到此警告,请咨询Astropy发行版的打包者。 无法执行脚本MARK1
我已经安装了Astropy V1.33。
看起来这是Astropy的一个已知持续问题。 这是来自GitHub上Astropy开发的一些讨论: https : //github.com/astropy/astropy/pull/960 。
这个问题之前也被问过几次:
您可以尝试在pyinstaller设置中包括六个作为隐藏导入。 否则,您可能需要使用Astropy的冻结版本,在该版本中,他们添加了一些编辑以使其与pyinstaller一起使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.