pyinstaller -D XXX.py
XXX.exe 运行报错。
需要怎么处理?
错误信息,其中:
Traceback (most recent call last):
File "pyarrow\pandas-shim.pxi", line 104, in pyarrow.lib._PandasAPIShim._check_import
self._import_pandas(raise_)
File "pyarrow\pandas-shim.pxi", line 57, in pyarrow.lib._PandasAPIShim._import_pandas
from pyarrow.vendored.version import Version
ModuleNotFoundError: No module named 'pyarrow.vendored.version'
Exception ignored in: 'pyarrow.lib._PandasAPIShim._have_pandas_internal'
Traceback (most recent call last):
File "pyarrow\pandas-shim.pxi", line 104, in pyarrow.lib._PandasAPIShim._check_import
self._import_pandas(raise_)
File "pyarrow\pandas-shim.pxi", line 57, in pyarrow.lib._PandasAPIShim._import_pandas
from pyarrow.vendored.version import Version
ModuleNotFoundError: No module named 'pyarrow.vendored.version'
Traceback (most recent call last):
File "Cell_Transfer.py", line 858, in btn_OnClicked_get_node_ids(这里用到了pd.to_feather()语句)
File "pandas\util\_decorators.py", line 207, in wrapper
File "pandas\core\frame.py", line 2519, in to_feather
File "pandas\io\feather_format.py", line 87, in to_feather
File "pyarrow\feather.py", line 187, in write_feather
TypeError: Argument 'table' has incorrect type (expected pyarrow.lib.Table, got DataFrame)
解决方案:
pyinstaller -D XXX.py -n CellTransTec --hidden-import="pyarrow.vendored.version"
想骂人,因为这个耗费我不少时间