遇到的问题
使用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, U
from itertools import tee
from random import choice, randint
from types import GeneratorType
# 修改后
#from re import sre_parse, U
import sre_parse
from re import U
from itertools import tee
from random import choice, randint
from types import GeneratorType