我需要使用一个名为 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
它对我有用。
我是一名优秀的程序员,十分优秀!