cx_freeze sre_constants.error什么都不重复

时间:2013-12-11 09:47:29

标签: python-3.x cx-freeze

我将Python从3.3.2更新到3.3.3,但这可能不是问题。 如果我直接启动我的python应用程序就可以了。

但是当我用cx_freeze将其冻结到exe时,C:\Python33\lib\site-packages\sqlalchemy\engine\url.py第184行中的sqlalchemy连接使用re.compile并抛出

C:\Python\32-bit\3.3\lib\sre_compile.py

中的

_simple第362行

sre_constraints.error: nothing to repeat

但在第362行的sre_compile.py文件中没有引发错误,无需重复。 cx_freeze必须使用旧版本的文件。

当我写这段代码时:

import sre_compile
print(sre_compile)

并创建一个打印出的exe:<module 'sre_compile' (frozen)>并且它没有属性__file__ 我试图从我的系统中删除所有__pycache__目录,但没有任何事情发生。

如何告诉cx_freeze采用新版本的sre_compile模块?

0 个答案:

没有答案