使用python3.11默认无法运行oneforall脚本,出现如下报错
#解决方案修改 /usr/local/lib/python3.11/dist-packages/exrex.py
exrex.py具体文件路径报错中会显示
vim /usr/local/lib/python3.11/dist-packages/exrex.py#修改前from re import sre_parse, Ufrom itertools import teefrom random import choice, randintfrom types import GeneratorType#修改后#from re import sre_parse, Uimport sre_parsefrom re import Ufrom itertools import teefrom random import choice, randintfrom types import GeneratorType#问题解决