実行すると、プログラムが使用して動作します:pyinstallerでpyexcel-xlsを使用できません。 Python実行ファイルが動作しません。 Pythonのバージョン3.4.4
Python filename.py
が、私は実行ファイルが正常に作成された「pyinstaller」
pyinstaller -F filename.py
を使用して、その実行可能ファイルを作成しますが、スクリプトの実行失敗し、次のエラーがスローされます。
Traceback (most recent call last):
File "site-packages\pyexcel_io\manager.py", line 160, in create_reader
File "site-packages\pyexcel_io\manager.py", line 222, in _get_a_handler
pyexcel_io.manager.NoSupportingPluginFound: No suitable library found for xls
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "script.py", line 8, in <module>
File "site-packages\pyexcel_xls\__init__.py", line 29, in get_data
File "site-packages\pyexcel_io\io.py", line 36, in get_data
File "site-packages\pyexcel_io\io.py", line 126, in load_data
File "site-packages\pyexcel_io\manager.py", line 171, in create_reader
pyexcel_io.manager.SupportingPluginAvailableButNotInstalled: Please install pyexcel-xls
Failed to execute script script
それぞれのPythonスクリプトは次のとおりです。
from pyexcel_xls import save_data , get_data
data = get_data("registered-market-makers-by-security.xls")
save_data("file_to_consume.xls", data)
どのように私はこのエラーを回避し、機能的な.exeファイルを作成することができますか?
私のクライアントにはWindows環境があります。
私もpy2exeを試しましたが、それは私のマシンのWindows dllのいくつかの競合を持っています。
"pyexcel_io/__ init__.py"が調整されました –