py2exe + sqlalchemy + sqlite problem

前端 未结 2 1592
一生所求
一生所求 2021-01-30 23:45

I am playing around with getting some basic stuff to work in Python before i go into full speed dev mode. Here are the specifics:

Python 2.5.4
PyQt4 4.4.3
SqlAlc         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 00:20

    you need to include the sqlalchemy.databases.sqlite package

    setup(
      windows=[{"script" : "main.py"}],
      options={"py2exe" : {
        "includes": ["sip", "PyQt4.QtSql"],
        "packages": ["sqlalchemy.databases.sqlite"]
    }})
    

提交回复
热议问题