我们更新了一些python pkg和模块
其中一个是pkg{
我们将密码从版本cryptography (1.7.1)
更新为cryptography (2.9.2)
但是当我们访问pythonshell时,我们得到ImportError: No module named cryptography.fernet
尽管安装了加密技术
pip list |grep cryptography
cryptography (2.9.2)
来自pythonshell
python
Python 2.7.5 (default, Sep 12 2018, 05:31:16)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from cryptography.fernet import Fernet
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named cryptography.fernet
注意-在以前的版本cryptography (1.7.1)
中,一切都正常
那么,模块有什么问题
注意,python脚本也存在同样的问题
import sys
import os
import base64
from cryptography.fernet import Fernet
.
.
.
安装以下rpm文件解决了此问题
相关问题 更多 >
编程相关推荐