Jetson nano 无法安装 PyQt5

问题描述 投票:0回答:1

我正在努力在我的 Jetson nano 中安装 PyQt5。然而,有一件事总是让我烦恼。 这是反馈信息。

 note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for sip
      Failed to build sip
      ERROR: Could not build wheels for sip, which is required to install pyproject.toml-based projects
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

我尝试过

sudo pip3 install pyqt5
,它给了我

compilation terminated.
            error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for sip
      Failed to build sip
      ERROR: Could not build wheels for sip, which is required to install pyproject.toml-based projects
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

我也尝试过

sudo apt-get install python3-pyqt5
。它有效,但是当我通过
from pyqtgraph.Qt import QtCore, QtGui
from PyQt5.QtCore import QObject, pyqtSignal
导入 PyQt5 时,它给了我

Traceback (most recent call last):
  File "/home/llw/Desktop/project/ture file/save_pointcloud.py", line 16, in <module>
    from pyqtgraph.Qt import QtCore, QtGui
  File "/usr/local/lib/python3.7/dist-packages/pyqtgraph/__init__.py", line 17, in <module>
    from .colors import palette
  File "/usr/local/lib/python3.7/dist-packages/pyqtgraph/colors/palette.py", line 1, in <module>
    from ..Qt import QtGui
  File "/usr/local/lib/python3.7/dist-packages/pyqtgraph/Qt/__init__.py", line 155, in <module>
    import PyQt5.QtCore
ModuleNotFoundError: No module named 'PyQt5.QtCore

如何解决这个问题?任何建议或想法都可能有所帮助。

谢谢你。

python-3.x pyqt5 pyqtgraph nvidia-jetson-nano
1个回答
0
投票

有一个类似的问题——你需要从源代码构建 pyQt 库。这是一个对我有用的好解决方案如何安装 PyQt5 Jetson nano

© www.soinside.com 2019 - 2024. All rights reserved.