修改hmac文件:

vi /opt/python/lib/python3.11/hmac.py

修改:

return HMAC(key, msg, digestmod)

为:

return HMAC(key, msg, digestmod='SHA256')

故障解决。