使用cx_freeze打包Python项目时出现缺失依赖警告的求助
使用cx_freeze打包Python项目时出现缺失依赖警告的求助
我一直在尝试无警告无错误地打包我的Python项目,但每次用cx_freeze打包时都会弹出一堆依赖缺失的警告信息:
Missing dependencies: ? api-ms-win-core-path-l1-1-0.dll ? api-ms-win-crt-conio-l1-1-0.dll ? api-ms-win-crt-convert-l1-1-0.dll ? api-ms-win-crt-environment-l1-1-0.dll ? api-ms-win-crt-filesystem-l1-1-0.dll ? api-ms-win-crt-heap-l1-1-0.dll ? api-ms-win-crt-locale-l1-1-0.dll ? api-ms-win-crt-math-l1-1-0.dll ? api-ms-win-crt-process-l1-1-0.dll ? api-ms-win-crt-runtime-l1-1-0.dll ? api-ms-win-crt-stdio-l1-1-0.dll ? api-ms-win-crt-string-l1-1-0.dll ? api-ms-win-crt-time-l1-1-0.dll ? api-ms-win-crt-utility-l1-1-0.dll This is not necessarily a problem - the dependencies may not be needed on this platform.
我之前看到有帖子说需要下载或更新“Microsoft Visual C++ Redistributable”,但这么做之后警告还是存在。
虽然打包后的程序运行起来没有问题,但这些警告一直出现,而且我找不到解决办法,这让我很困扰。
一开始我以为是PyCharm的问题,但换成VSCode打包时同样会出现这个错误,而且我试过Python 3.9、3.11和3.12三个版本,情况都一样。
有没有人能帮我解决这个问题?
备注:内容来源于stack exchange,提问作者Sebastian
相关产品推荐
相关产品推荐

