![](/img/trans.png)
[英]After compilation of any Python program with Nuitka I get “is not a valid win32 application” error
[英]Python code compiled to a standalone program with Nuitka reports win32file.pyd import error
在Windows 10 amd64計算機上編譯的程序無法在Windows Server 2008R2 amd64上啟動,並顯示以下錯誤:
ImportError: LoadLibraryEx 'path\\to\\dist\\folder\\win32file.pyd' failed
Nuitka版本:0.5.29.1穩定
問題的根本原因恰好與此stackoverflow線程中所述的相同: 在python 2.6上加載win32file.pyd的問題
解決方案是從dist目錄中刪除MSWSOCK.dll
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.