Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 gui2exe(它使用 py2exe 创建一个 .exe)将我的 python 脚本编译成单个 .exe。我的程序正在使用 wxWidgets,每次我尝试编译它时都会收到以下错误消息:
错误 MSVCP90.dll:没有这样的文件或目录。
我已经下载并安装了 VC++ 可再发行包,所以我应该有这个 .dll 不是吗?
是的,你应该拥有它。您必须将其从 py2exe 中排除。
options = { 'py2exe': { 'dll_excludes': [ 'MSVCP90.dll' ] } } setup(windows=["main.py"], options=options)
你需要去微软的下载站点获取visual C++ 2008 重新分发包。告诉它进行维修并搜索驱动程序。将驱动复制到python目录下的DLL文件夹中