遇到的問題
使用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