RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods

出现错误:RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods

是因为缺少cryptography包,

可以使用 pip install cryptography 安装cryptography包,

如果安装cryptography失败,先检查一下自己的pip包是否为最新版本,在settings>Project>Project Interpreter里查看pip的版本

接下来使用easy_install -U pip 更新pip

然后再用 pip install cryptography 安装cryptography包

原文地址:https://www.cnblogs.com/fzboss/p/14215150.html