简体   繁体   中英

exe created with pyinstaller failed to execute

I am trying to create an .exe file of my python script using pyinstaller. The exe file is successfully created but when I try to run it, cmd gives the error:

Import Error: Astropy requires the 'six' module of minimum version 1.10; normally this is bundled with the astropy package so if you get this warning consult the packager of your Astropy distribution. Failed to execute script MARK1

I have installed Astropy V1.33.

Looks like this is a known an ongoing issue with Astropy. Here is some discussion from the Astropy development on GitHub: https://github.com/astropy/astropy/pull/960 .

This question has also been asked a few times before:

You could try including six as a hidden-import in your pyinstaller settings. Otherwise, you might need to use a frozen version of Astropy, where they have added some edits to make it work with pyinstaller.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM