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

# 问题解决

相关推荐
阿pin6 分钟前
Android随笔-pipe是什么?
android·linux·pipe
小趴菜え10 分钟前
升级Ubuntu20.04版本至Ubuntu22.04
linux·运维
辰三16 分钟前
统信 UOS + GBase 8s 国产化环境部署实战:从虚拟机到数据库连接完整指南
linux·c#
渣渣盟16 分钟前
Docker 运维常用命令手册(含扩容与实战)
运维·docker·容器
小羊Yveesss32 分钟前
2026年外贸建站服务器怎么选?访问速度、稳定性和海外收录怎么判断
大数据·运维·服务器
Darkwanderor1 小时前
Linux进程优先级操作
linux·运维·c语言·c++
小五传输1 小时前
内外网文件交换系统产品推荐 解决隔离网络文件交换5类难题
大数据·运维·安全
AOwhisky1 小时前
Linux(CentOS)系统管理入门笔记(第一期)——从 Multics 到主流发行版
linux·运维·笔记·centos·云计算
从零开始的代码生活_1 小时前
Linux epoll 多路转接详解
linux·运维·网络·后端·tcp/ip·计算机网络·php
渣渣盟2 小时前
Linux软件管理与编辑器命令速查手册
linux·运维·编辑器