无法在 Kali 上安装 python gpg

无法在 Kali 上安装 python gpg

我无法使用 pip 安装 gpg:

# pip install gpg
Collecting gpg
  Downloading 
Complete output from command python setup.py egg_info:
Could not find gpgme-config.  Please install the libgpgme development package.

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-QzenGe/gpg/

尝试安装libgpgmelibgpgme-dev导致

# pip install libgpgme
Collecting libgpgme
  Could not find a version that satisfies the requirement libgpgme (from versions: )
No matching distribution found for libgpgme

尽管我的发行版没有版本,但如何安装 gpg?


聚苯乙烯:

我在 Kali 4.6.0 上运行:

# uname -a
Linux hostname 4.6.0-kali1-amd64 #1 SMP Debian 4.6.4-1kali1 (2016-07-21) x86_64 GNU/Linux

答案1

既然你需要gpgme-config,你需要安装libgpgme-dev,这是以下的开发包libgpgme

apt install libgpgme-dev

您也可以pip完全跳过使用并安装python-gpg(或者python3-gpg如果您使用的是 Python 3)包:

apt install python-gpg

相关内容