已安装GnuPG,但python在运行时找不到它 [英] GnuPG is installed but python is not finding it in runtime

查看:98
本文介绍了已安装GnuPG,但python在运行时找不到它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

pip install GnuPG 说已经满足要求,但是当我使用GnuPG运行python脚本时,它说未安装 GnuPG .

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.

推荐答案

为了修复我的环境,我不得不使用pip卸载命令来卸载pgp和python-gnupg,然后仅安装python-gnupg.我一定有多个版本的pgp,而python使用的是错误的版本.

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.

这篇关于已安装GnuPG,但python在运行时找不到它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆