0

我无法弄清楚如何在 Windows 上使用 Python 将 Outlook 数据文件(.pst 文件扩展名)转换为 mbox 文件。

在 Mac 上,它相对简单——只需安装 libpst,然后使用以下内容。

def pst_to_mbox(pstfilename, outputfolder):
    subprocess.call(['readpst', '-o', 
                     outputfolder, '-r', pstfilename])

但是,在 Windows 上,这不起作用。当我尝试在命令行中使用适当的outputfolderand运行 readpst 时pstfilename,出现以下错误。

'readpst' is not recognized as an internal or external command,
operable program or batch file.

经过多次谷歌搜索,我还没有找到在 Windows 上安装 libpst 的良好说明来源(似乎甚至不可能)。那么如何在 Windows 操作系统上使用 Python 进行转换呢?

4

0 回答 0