使用pyIns时缺少模块

2024-04-25 00:19:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用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

Tags: import程序脚本most错误macosprogramhistory