Python: Compiling astropy with pyinstaller

拥有回忆 提交于 2019-12-24 11:44:26

问题


Currently I'm trying to compile a python application with pyinstaller for distribution. Unfortunately, the compiled version doesn't run, seemingly because of one of astropy's dependencies: six. Astropy encounters an import error on startup although I've even tried adding six to 'hidden imports' in the application's specs-file. Strangely however, during compilation pyinstaller notes that my hidden import 'six' has been found otherwise (this is also the only time six is mentioned) but still it doesn't show up in my distr directory after building.

Is this a known bug? I couldn't find any information related to using astropy/six with pyinstaller. Or is there a better solution perhaps?

来源:https://stackoverflow.com/questions/29052982/python-compiling-astropy-with-pyinstaller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!