gpt4 book ai didi

python - 如何在 python 2.7 中安装 pem 模块?

转载 作者:太空宇宙 更新时间:2023-11-03 14:54:02 24 4
gpt4 key购买 nike

我需要使用一个名为 pem 的 python 模块。在这里能找到它: https://pypi.python.org/pypi/pem/15.0.0#downloads

我是 Windows 7 64 位用户。我使用 Python 2.7。

我从网页上下载了文件。我把文件放在 C: 目录中。然后我打开命令行提示符并输入:

C:\Python27\Scripts>pip install --egg pem

我收到这条消息:

Requirement already satisfied (use --upgrade to upgrade): pem in c:\users\xx\appd
ata\roaming\python\python27\site-packages

请帮我安装这个 pem 模块。由于其他模块的其他限制,我无法升级到 python 3。根据模块的网页,Python 2.7 支持 pem。

编辑:当我尝试导入 pem 时。我得到:

>>> import pem
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\xx\AppData\Roaming\Python\Python27\site-packages\pem\__init__.py
", line 3, in <module>
from . import twisted
File "C:\Users\xx\AppData\Roaming\Python\Python27\site-packages\pem\twisted.py"
, line 12, in <module>
from twisted.internet import ssl
ImportError: No module named twisted.internet

最佳答案

尝试做:

pip install pem

它对我有用。

关于python - 如何在 python 2.7 中安装 pem 模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31513651/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com