2301_76845943 2023-12-18 15:20
浏览 5
已结题

pyinstaller运行后提示报错无法解决

#pyinstaller运行后提示报错,无法解决
#Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Python311\Scripts\pyinstaller.exe_main.py", line 7, in
File "C:\Python311\Lib\site-packages\PyInstaller_main.py", line 214, in console_script_run
run()
^^^^^
File "C:\Python311\Lib\site-packages\PyInstaller_main.py", line 170, in run
parser = generate_parser()
^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\PyInstaller_main_.py", line 136, in generate_parser
import PyInstaller.building.build_main
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\PyInstaller\building\build_main.py", line 28, in
from PyInstaller.building.api import COLLECT, EXE, MERGE, PYZ
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\PyInstaller\building\api.py", line 32, in
from PyInstaller.building.splash import Splash # argument type validation in EXE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\PyInstaller\building\splash.py", line 23, in
from PyInstaller.depend import bindepend
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\PyInstaller\depend\bindepend.py", line 25, in
from PyInstaller.depend import dylib, utils
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\PyInstaller\depend\utils.py", line 28, in
from PyInstaller.depend import bytecode
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\PyInstaller\depend\bytecode.py", line 120, in
_cache_instruction_filter = bytecode_regex(rb"(CACHE.)|(..)")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\PyInstaller\depend\bytecode.py", line 53, in bytecode_regex
pattern = re.sub(
^^^^^^^
return _compile(pattern, flags).sub(repl, string, count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\PyInstaller\depend\bytecode.py", line 55, in
lambda m: _instruction_to_regex(m[1].decode()),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\PyInstaller\depend\bytecode.py", line 36, in _instruction_to_regex
return re.escape(bytes([opmap[x]]))

~~~~~^^^
KeyError: 'CACHE'

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 12月26日
    • 创建了问题 12月18日

    悬赏问题

    • ¥15 基于STM32心率血氧监测(OLED显示)相关代码运行成功后烧录成功OLED显示屏不显示的原因是什么
    • ¥100 X轴为分离变量(因子变量),如何控制X轴每个分类变量的长度。
    • ¥30 求给定范围的全体素数p的(p-2)的连乘积
    • ¥15 VFP如何使用阿里TTS实现文字转语音?
    • ¥100 需要跳转番茄畅听app的adb命令
    • ¥50 寻找一位有逆向游戏盾sdk 应用程序经验的技术
    • ¥15 请问有用MZmine处理 “Waters SYNAPT G2-Si QTOF质谱仪在MSE模式下采集的非靶向数据” 的分析教程吗
    • ¥50 opencv4nodejs 如何安装
    • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
    • ¥15 nginx反向代理获取ip,java获取真实ip