使用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#問題解決