python常见异常及解决方法

异常1:

ValueError: unsupported hash type sha224

ERROR:root:code for hash sha256 was not found.

Traceback (most recent call last):

  File "/home/admin/Python/lib/python2.7/hashlib.py", line 139, in <module>

    globals()[__func_name] = __get_hash(__func_name)

  File "/home/admin/Python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor

    raise ValueError('unsupported hash type ' + name)

解决方法:

sudo yum install openssl098e

我装了openssl-1.0.1s也不行,一定要装openssl098e

原文地址:https://www.cnblogs.com/aiwa/p/6652368.html