小编Edu*_*ler的帖子

PyInstaller中没有名为'pandas._libs.tslibs.timedeltas'的模块

我正在尝试使用PyInstaller(开发版)为Windows将Python脚本包装到exe中.

该脚本使用Pandas,我在运行exe时遇到了错误.

Traceback (most recent call last):   File "site-packages\pandas\__init__.py", line 26, in <module>   File "C:\Users\Eddie\Anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)   File "site-packages\pandas\_libs\__init__.py", line 4, in <module>   File "C:\Users\Eddie\Anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 714, in load_module
    module = loader.load_module(fullname)   File "pandas/_libs/tslib.pyx", line 1, in init pandas._libs.tslib ModuleNotFoundError: No module named 'pandas._libs.tslibs.timedeltas'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):   File "G5k Version file Extract (with tkinter).py", line 15, in <module>   File "C:\Users\Eddie\Anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, …
Run Code Online (Sandbox Code Playgroud)

python windows pyinstaller python-3.x pandas

23
推荐指数
3
解决办法
2万
查看次数

标签 统计

pandas ×1

pyinstaller ×1

python ×1

python-3.x ×1

windows ×1