天天看点

Python3.11修改并运行oneforall

作者:资阳花街

遇到的问题

使用python3.11默认无法运行oneforall脚本,出现如下报错

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
           
Python3.11修改并运行oneforall

#修改后

#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
           
Python3.11修改并运行oneforall

#问题解决

Python3.11修改并运行oneforall