当前位置: 首页 > 工具软件 > GnuPG > 使用案例 >

ModuleNotFoundError: No module named ‘gnupg‘ 解决方法

胡嘉歆
2023-12-01

一、问题描述

运行python 脚本遇到如下问题:ModuleNotFoundError: No module named 'gnupg'

Traceback (most recent call last):
  File "/home/ubuntu/Dataset/20220702_morning_JingKun-velodyne32/rosbag2video.py", line 16, in <module>
    import rosbag
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rosbag/__init__.py", line 33, in <module>
    from .bag import Bag, Compression, ROSBagException, ROSBagFormatException, ROSBagUnindexedException
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rosbag/bag.py", line 56, in <module>
    import gnupg
ModuleNotFoundError: No module named 'gnupg'

二、解决方案

直接安装对应的 Module:

pip install gnupg
 类似资料: