13580916979 发表于 2021-8-19 13:52:15

求助pyinstaller打包exe文件运行报错

本帖最后由 13580916979 于 2021-8-19 15:14 编辑

746385 INFO: Appending archive to EXE F:\anaconda\dist\untitled13.exe
746486 INFO: Building EXE from EXE-00.toc completed successfully.   
(base) PS F:\anaconda> cd dist
(base) PS F:\anaconda\dist> untitled13.exe
Traceback (most recent call last):
File "F:\Anaconda\untitled13.py", line 11, in <module>
    import matplotlib.pyplot as plt
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "E:\Anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
    exec(bytecode, module.__dict__)
File "Lib\site-packages\matplotlib\__init__.py", line 822, in <module>
File "Lib\site-packages\matplotlib\__init__.py", line 727, in _rc_params_in_file
File "contextlib.py", line 113, in __enter__
File "Lib\site-packages\matplotlib\__init__.py", line 705, in _open_file_or_url
FileNotFoundError: No such file or directory: 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\_MEI189402\\matplotlib\\mpl-data\\matplotlibrc'
Failed to execute script untitled13

13580916979 发表于 2021-8-19 16:09:26

已解决!打包文件里的matplotlib库包跟python里面的库包文件不一直,手动复制到打包运行文件目录下即可

叼辣条闯世界 发表于 2021-8-21 09:45:03

打包文件里的matplotlib库包跟python里面的库包文件不一致,手动复制到打包运行文件目录下即可
页: [1]
查看完整版本: 求助pyinstaller打包exe文件运行报错