运行 pip install firebase-admin 后出现错误

问题描述

我已经在 python2 中安装了 firebase-admin,但它的模块没有安装并出现以下错误

AttributeError: 'module' object has no attribute 'Cryptography_HAS_SSL_ST'

解决方法

我想我已经通过删除 python-openssl 包(及其依赖项)解决了这个问题:

apt-get --auto-remove 删除 python-openssl

然后用pip安装最新版本:

pip 安装 pyOpenSSL