PyCharm运行时报错 RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods
PyCharm运行项目时出现错误
```
RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods
```
产生该错误的原因是缺少cryptography包。
有时候最新版本的cryptography也会报这个错误。
如果是缺少 cryptography 包,安装最新的 cryptography 包即可。
如果已经有 cryptography 包但依然报错,原因就是最新的 cryptography 和部分插件不兼容,可以先 uninstall cryptography 包,然后安装制定版本的 cryptography 包,例如: 4.7.7 版本。
我的笔记