2017-06-13 38 views
1

pyinstallerを使用して私のpythonスクリプトの.exeファイルを作成しようとしています。 exeファイルは正常に作成されましたが、実行しようとするとcmdがエラーを返します:pyinstallerで作成したexeファイルを実行できませんでした

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

私はAstropy V1.33をインストールしました。

+0

これについてはすでに複数の質問があります。例えばhttps://stackoverflow.com/questions/29052982/python-compiling-astropy-with-pyinstaller – Iguananaut

答えて

2

これは、Astropyで進行中の問題として知られているようです。 GitHubでのAstropyの開発からのいくつかの議論があります:https://github.com/astropy/astropy/pull/960

前に、この質問にも数回頼まれました:あなたはのように6を含めてみてください

あなたのpyinstallerの設定で隠されたインポート。それ以外の場合は、Astropyのフリーズ版を使用する必要があります.Astropyはpyinstallerで動作するようにいくつかの編集を追加しています。

+0

応答がうれしいです。しかし、pyinstallerの設定に6を隠しインクルードとして含める方法。 –

+0

pyinstaller firstread.py [--hidden-import six]を使ってみましたが、スクリプト 'C:\ Python34 \ Scripts \ [ - hidden-imports]'が見つかりませんでした –

+0

私はhidden-importを意味しました。ドキュメントは次のとおりです。https://pythonhosted.org/PyInstaller/when-things-go-wrong.html#listing-hidden-imports – AlexM

関連する問題