我正在尝试使用pyInstaller从python脚本为macOS创建独立程序,但是每次尝试运行pyInstaller创建的程序时,都会出现以下错误:
Traceback (most recent call last):
File "Program.py", line 15, in <module>
ImportError: No module named 'fpdf'
[18189] Failed to execute script Program logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
使用的模块:
import xlrd
import xlwt
import os
from fpdf import FPDF