使用運行時,該項目工程:無法與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」的工作 –