如何在Windows XP上使用cefpython3编写简单的浏览器

如何在Windows XP上使用cefpython3编写简单的浏览器,python,windows-xp,chromium-embedded,Python,Windows Xp,Chromium Embedded,我想使用cefpython3创建一个简单的浏览器,在mac上我使用这段代码 from cefpython3 import cefpython as cef import platform import sys def main(): check_versions() sys.excepthook = cef.ExceptHook # To shutdown all CEF processes on error cef.Initialize() cef.Creat

我想使用cefpython3创建一个简单的浏览器,在mac上我使用这段代码

from cefpython3 import cefpython as cef
import platform
import sys
def main():
    check_versions()
    sys.excepthook = cef.ExceptHook  # To shutdown all CEF processes on error
    cef.Initialize()
    cef.CreateBrowserSync(url="https://www.google.com/",
                          window_title="test")
    cef.MessageLoop()
    cef.Shutdown()
def check_versions():
    assert cef.__version__ >= "55.3", "CEF Python v55.3+ required to run this"
if __name__ == '__main__':
    main()

如何在XP上获得相同的输出(XP仅支持cepython31.2),请帮助我plz

CEF Python v31没有hello world示例。您可以在cefpython31分支中看到所有可用的示例:

以pywin32.py为例,它只依赖于较小的pywin32库