问题
pip install GnuPG
says that the requirement is already satisfied but when I run a python script with GnuPG it says GnuPG is not installed
.
回答1:
In order to fix my environment I had to uninstall pgp and python-gnupg using the pip uninstall commands and then ONLY install python-gnupg. I must have had multiple versions of pgp and python was using the wrong one.
回答2:
are you sure about the python and pip version?
try to see pip is referring to which python version and you are running script in which python version, verify if these are the same.
来源:https://stackoverflow.com/questions/56763171/gnupg-is-installed-but-python-is-not-finding-it-in-runtime