簡體   English   中英

模塊 ctypes 沒有屬性“windll”

[英]Module ctypes has no attribute 'windll'

我正在 GCP 應用程序引擎上運行我的 web 應用程序並收到此錯誤

AttributeError: module 'ctypes' has no attribute 'windll'

我正在使用它在瀏覽器上顯示警報消息,誰能告訴我此錯誤的替代方案或解決方案

注意:我也嘗試過 win32api 但它不能正常工作這是錯誤

 Could not find a version that satisfies the requirement pywin32==223 (from -r requirements.txt (line 6)) (from versions: )

似乎您正在嘗試在非 Windows 環境上使用 Windows 模塊,如果您檢查 ctype 模塊,它有一些條件類:

if _os.name == "nt":

    class WinDLL(CDLL):
        """This class represents a dll exporting functions using the
        Windows stdcall calling convention.
   [...]

https://docs.python.org/3/library/ctypes.html

暫無
暫無

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

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