天天看點

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