DataFrame.tofeather(),pyinstaller 打包运行报错

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"

想骂人,因为这个耗费我不少时间

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值