对于
RuntimeError: ‘cryptography’ package is required for sha256_password or caching_sha2_password auth methods
错误来说,其实是提示让我们安装cryptography
,安装命令如下:
pip install cryptography
如果使用国外的源下载速度慢,我们可以使用国内的源进行提速:
- 豆瓣源
pip3 install cryptography -i https://pypi.douban.com/simple
- 清华大学源
pip3 install cryptography -i https://pypi.tuna.tsinghua.edu.cn/simple
更多关于提速的解决方案请参考:解决Python安装第三方库太慢的问题