问题描述
我正在我的 Macbook 上编写一个小的 python 脚本,该脚本旨在作为可执行文件在 Windows 机器上运行。
我当前的 python 安装文件如下所示:
import sys
from cx_Freeze import setup,Executable
build_exe_options = {
"packages": ["pandas","numpy","glob","openpyxl"],# "excludes": ["xz","liblzma","pyliblzma"]
# "packages": ["],# "includes": []
}
base = None
setup( name = "ProgramGUI",version = "0.1",description = "Script for dad!",options = {"build_exe": build_exe_options},executables = [Executable("dir_to_sheets.py",base=base)])
cx_Freeze.darwintools.DarwinException: Attempting to copy two files to 'build/exe.macosx-10.15-x86_64-3.7/liblzma.5.dylib'
source 1: '/Users/olshansky/.pyenv/versions/3.7.7/lib/python3.7/site-packages/PIL/.dylibs/liblzma.5.dylib' (real: '/Users/olshansky/.pyenv/versions/3.7.7/lib/python3.7/site-packages/PIL/.dylibs/liblzma.5.dylib')
source 2: '/usr/local/opt/xz/lib/liblzma.5.dylib' (real: '/usr/local/opt/xz/lib/liblzma.5.dylib')
(This may be caused by including modules in the zip file that rely on binary libraries with the same name.)
我在网上四处搜索,但未能成功找到解决方案,想知道之前是否有人遇到过这种情况?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)