使用pyinstaller打包后报错ImportError: The _imagingft C module is not installed

问题描述 投票:0回答:0

使用pyinstaller打包后报错ImportError: The _imagingft C module is not installed

`Traceback (most recent call last):
  File "tkinter\__init__.py", line 1702, in __call__
  File "Face_Login_UI.py", line 236, in Face_detection
  File "Face_Login_UI.py", line 140, in draw_warring
  File "PIL\ImageFont.py", line 959, in truetype
  File "PIL\ImageFont.py", line 956, in freetype
  File "PIL\ImageFont.py", line 219, in __init__
  File "PIL\ImageFont.py", line 58, in __getattr__
ImportError: The _imagingft C module is not installed`
pip uninstall pillow
pip install pillow

没有效果

python-3.7
© www.soinside.com 2019 - 2024. All rights reserved.