Python3.11修改并运行oneforall

科技一颗大心心 2024-04-27 06:55:53
遇到的问题

使用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

#问题解决

0 阅读:74

科技一颗大心心

简介:感谢大家的关注