Kali-Linux

無法在 Kali 上安裝 python gpg

  • April 17, 2018

我無法使用 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?


PS

我在 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

既然你需要gpgme-config,你需要安裝libgpgme-dev,它是開發包libgpgme

apt install libgpgme-dev

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

apt install python-gpg

引用自:https://unix.stackexchange.com/questions/438277