が欠落しpyInstallerののwarnoutを使用してファイルをexeファイルには、Windowsは、10 のpython:pythonの3.5、まさに私はAnaconda3をインストール-4.2.0-Windowsのx86_64.exe pyInstallerの:3.2 私はすでにpyinstallファイルにコンバートpython3.5コードはここに私の環境だ、私はpyInstallerのを使用してexeファイルに私のpython 3.5のプログラムを変換していますモジュール
をmyfile.pyをコピーしているし、私はCMDで実行します。
cd C:\Program Files\Anaconda3\Scripts
pyinstaller.exe -F myfile.py
コードがsuccessfuly実行され、私が得ました2フォルダ
C:\Program Files\Anaconda3\Scripts\build
C:\Program Files\Anaconda3\Scripts\dist
"C:\プログラムファイル\ Anaconda3 \スクリプト\ DIST" で、私はmyfile.exeを得たが、バグ私はそれを実行すると、エラーが発生しました:
Traceback (most recent call last):
File "site-packages\PyInstaller\loader\rthooks\pyi_rth_pkgres.py", line 11, in <module>
File "c:\program files\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
exec(bytecode, module.__dict__)
File "site-packages\setuptools-27.2.0-py3.5.egg\pkg_resources\__init__.py", line 68, in <module>
File "site-packages\setuptools-27.2.0-py3.5.egg\pkg_resources\extern\__init__.py", line 61, in load_module
ImportError: The 'appdirs' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.
Failed to execute script pyi_rth_pkgres
私は、ログを確認C:\プログラムファイル\ Anaconda3 \スクリプト\構築\ myfileの\ warnout.txt、そして得たが、このように警告します:
:missing module named PyQt5.QtCore.QCoreApplication - imported by PyQt5.QtCore, c:\program files\anaconda3\lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_qt5plugins.py
missing module named PyQt5.QtCore.QIODevice - imported by PyQt5.QtCore
missing module named PyQt5.QtCore.QBuffer - imported by PyQt5.QtCore
missing module named PyQt5.QtGui.QPixmap - imported by PyQt5.QtGui
missing module named PyQt5.QtGui.QImage - imported by PyQt5.QtGui
missing module named PyQt5.QtGui.qRgba - imported by PyQt5.QtGui
missing module named 'PyQt5.sip' - imported by c:\program files\anaconda3\lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_qt5plugins.py
missing module named numpy.infty - imported by numpy, scipy.sparse.linalg.isolve.lsmr
missing module named numpy.finfo - imported by numpy, scipy.sparse.linalg.isolve.minres, scipy.optimize.slsqp, scipy.optimize.minpack, scipy.optimize.zeros
missing module named numpy.inner - imported by numpy, scipy.sparse.linalg.isolve.minres
missing module named pandas.core.base.NoNewAttributesMixin - imported by pandas.core.base, pandas.core.strings, pandas.tseries.common, pandas.core.categorical
missing module named pandas.core.base.PandasDelegate - imported by pandas.core.base, pandas.tseries.common, pandas.core.categorical
missing module named pandas.core.base.AccessorProperty - imported by pandas.core.base, pandas.core.strings
多くはこのように、私も同様に、いくつかの類似したコードを試してみました警告しているあります
しかし、私はどのように行うことができます
(エラーが発生しませんが、起こった警告し、exeファイルを使用することはできません)も同じ結果を得ましたか。ありがとう!私はちょうどそれを解決した