我无法使用 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/
试图安装libgpgme
或libgpgme-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
:您也可以
pip
完全跳过使用并安装python-gpg
(或者python3-gpg
如果您使用的是 Python 3)包: