簡體   English   中英

Python 窗口可執行錯誤:LoadLibrary:Pyinstaller:FormatMessageW 失敗

[英]Python Window Executable Error: LoadLibrary: Pyinstaller: FormatMessageW failed

我的任務是嘗試讓這個 python 可執行文件在客戶端的服務器上運行。 我們的 Python 開發人員離開了,作為一名 .NET 人員,我不確定 Python 是如何工作的。 這是錯誤消息:

Error Loading Python DLL 'C:\users\user\AppData\Local\Temp\3\_mEI\python39.dll
No error message generated.
FormatMessageW: The parameter is incorrect.
LoadLibrary: Pyinstaller: FormatMessageW failed.

我正在使用較舊的 Windows Server (2008 r2)。 這是我到目前為止所嘗試的

  1. 卸載/重新安裝 Python
  2. 試圖重新編譯python可執行文件
  3. 使用參數運行命令提示符
  4. 在本地機器上運行可執行文件,但未顯示錯誤。

還有哪些其他步驟?

您是否嘗試過為 Visual Studio 2015 安裝 Visual C++ Redistributable

下載鏈接: https ://www.microsoft.com/en-us/download/confirmation.aspx?id=48145

我從這個答案中得到了它: Pyinstaller - Error loading Python DLL - FormatMessageW failed

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM