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

# 修改后

复制代码
#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

# 问题解决

相关推荐
大聪明-PLUS1 分钟前
数字与字节:Linux 中的内存是如何工作的?
linux·嵌入式·arm·smarc
旖旎夜光19 分钟前
Linux(6)(下)
linux·学习
广东大榕树信息科技有限公司34 分钟前
如何利用机房动环监控系统提升运维效率与安全性?
运维·网络·物联网·国产动环监控系统·动环监控系统
believe、悠闲35 分钟前
ubuntu各个版本官方镜像链接
linux·ubuntu
幺零九零零38 分钟前
Docker底层-Namespaces
运维·docker·容器
做一个码农都是奢望1 小时前
高算linux平台如何安装gprmax
linux·运维·服务器
jerryinwuhan1 小时前
Linux_shell_1229_2
linux
Ancelin安心1 小时前
Windows搭建和使用vulhub的一些常用命令
linux·运维·服务器·网络安全·docker·容器·vulhub
大聪明-PLUS1 小时前
Linux固件:简明扼要,用您自己的语言阐述
linux·嵌入式·arm·smarc
txzz88881 小时前
CentOS-Stream-10 搭建NTP服务器(二)
linux·服务器·centos·ntp时间服务器·centos 10