我之前运行的应用程序出现错误:
File "/usr/lib/python2.7/site-packages/cryptography/x509/__init__.py", line 7, in <module>
from cryptography.x509 import certificate_transparency
ImportError: cannot import name certificate_transparency
密码学库的版本是 2.2.2,我要求文件 certificate_transparency.py 存在于所需的文件夹中。上述问题的根源可能是什么?
pip 10.0.1 from /home/serj/.local/lib/python2.7/site-packages/pip (python 2.7)
请您参考如下方法:
我有同样的问题,密码学有问题。尝试
sudo pip install --upgrade cryptography
