簡體   English   中英

*/_MEI*/VCRUNTIME140.dll 不是為在 windows 上運行而設計的,或者在嘗試運行由 pyinstaller 創建的 run.exe 時包含錯誤

[英]*/_MEI*/VCRUNTIME140.dll is either not designed to run on windows or it contains as error when trying to run .exe created by pyinstaller

我一直在搜索很多,但沒有一個與我的問題有關,主要是他們的問題是缺少 vcruntime140。 但我不是,這是我的問題:

我在我的 Windows 10 中使用來自 a.py(這是我的小型 python 游戲程序)的 pyinstaller 創建了一個 .exe 文件,當我嘗試運行它給我這個錯誤的程序時:'''c:\user* \ AppData\Local\Temp_MEI *\VCRUNTIME140.dll 不是為在 Windows 上運行而設計的,或者它包含錯誤。 嘗試使用原始安裝介質重新安裝程序,或聯系您的系統管理員或軟件供應商尋求支持。 錯誤狀態 0xc00000d '''

在第一條消息上單擊確定后出現第二條消息:

'''加載 Python.DLL 時出錯 'C:\Users* \AppData\Local\Temp_MEI *\python38.dll 加載參數不正確'''

更新 Microsoft Visual C++ 2015 Redistributable Update 3 RC 不是一個選項,因為在我嘗試過但收到警告說我已經安裝之后。

我有一張與 python 無關的圖片用於我的程序上的徽標,我使用相對路徑鏈接,源代碼很長,所以我沒有在這里發布,但我添加了與該圖片相關的代碼:

def resource_path( relative_path ):
        absolute_path = os.path.abspath(__file__)
        root_path = os.path.dirname( absolute_path )
        base_path = getattr( sys, 'MEIPASS', root_path )
        return os.path.join( base_path, relative_path )
img = tkinter.PhotoImage( file = resource_path('./picture/lottery.gif') )

'''嘿,我設法解決了這些問題'''

please allows me plant some riddle if you did tries:
    -restart your computer
    -updates Windows update retribution
    -reregistering VCRUNTIME140.DLL
    -starting to reformat your PC( STOP! )
before you try these:
    make sure you are using 64bit python on your 64bit OS
    make sure your .exe is the same path as your .py which pertains to some 
    external source to operate your programs

'''解決了我的問題,希望這能幫助你解決大部分問題'''

暫無
暫無

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

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