gpt4 book ai didi

python - 使用 cx_freeze 4.3.1 卡住 pandas 0.15.1 时出错

转载 作者:太空宇宙 更新时间:2023-11-03 18:04:15 25 4
gpt4 key购买 nike

我正在尝试使用 cx_Freeze 卡住 Python 脚本。该脚本使用了 pandas。当我运行 cx_Freeze 创建的可执行文件时,我得到以下回溯:

  [...]
File "C:\Python34\lib\site-packages\pandas\__init__.py", line 7, in <module>
from . import hashtable, tslib, lib
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 2284, in _handle_fromlist
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 321, in _call_with_frames_removed
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 2237, in _find_and_load
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 2226, in _find_and_load_unlocked
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 1191, in _load_unlocked
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 1161, in _load_backward_compatible
File "ExtensionLoader_pandas_tslib.py", line 22, in <module>
File "ExtensionLoader_pandas_tslib.py", line 14, in __bootstrap__
File "pandas\tslib.pyx", line 2842, in init pandas.tslib (pandas\tslib.c:80063)
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 2237, in _find_and_load
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 2226, in _find_and_load_unlocked
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 1191, in _load_unlocked
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 1161, in _load_backward_compatible
File "ExtensionLoader_pandas_algos.py", line 22, in <module>
File "ExtensionLoader_pandas_algos.py", line 14, in __bootstrap__
File "pandas\algos.pyx", line 64, in init pandas.algos (pandas\algos.c:181716)
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 2284, in _handle_fromlist
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 321, in _call_with_frames_removed
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 2237, in _find_and_load
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 2226, in _find_and_load_unlocked
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 1191, in _load_unlocked
File "X:\Python34-x32\lib\importlib\_bootstrap.py", line 1161, in _load_backward_compatible
File "ExtensionLoader_pandas_lib.py", line 22, in <module>
File "ExtensionLoader_pandas_lib.py", line 14, in __bootstrap__
File "pandas\lib.pyx", line 1, in init pandas.lib (pandas\lib.c:77946)
AttributeError: 'module' object has no attribute '__pyx_capi__'

我使用的是 Python 3.4 - 32 位。有人有想法吗?

最佳答案

这是一个错误,已修复 here在 master 中并将在 0.15.2 中提供(很快)。您可以获得 Windows 版本 here

关于python - 使用 cx_freeze 4.3.1 卡住 pandas 0.15.1 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27176289/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com