GnuPG is installed but python is not finding it in runtime

风格不统一 提交于 2021-01-28 07:02:21

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!