#3240 执行uv run sp.py报错Traceback (most recent call last): File "/root/pyvideotrans/sp.py", line 25, infrom PySide6.QtWidgets i

2408:80e0* Posted at: 13 hours ago 👁7

执行uv run sp.py报错
Traceback (most recent call last):
File "/root/pyvideotrans/sp.py", line 25, in

from PySide6.QtWidgets import QApplication, QWidget, QLabel, QVBoxLayout

ImportError: libEGL.so.1: cannot open shared object file: No such file or directory

1 Replies

这是由于 Linux 系统缺少 PySide6 所需的 Qt 图形库依赖文件(libEGL.so.1)导致的。

解决方案

  1. 根据你的 Linux 发行版,安装对应的 Qt 图形库依赖包。

    • 对于 Ubuntu/Debian 系统,执行命令:
      sudo apt update && sudo apt install libegl1
    • 对于 CentOS/RHEL/Fedora 系统,执行命令:
      sudo yum install mesa-libEGLsudo dnf install mesa-libEGL
  2. 安装完成后,重新运行 uv run sp.py 启动软件。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource