解决AttributeError: cffi library ‘_openssl’ has no function, constant or global variable named ‘CRYPTOGRAPHY_PACKAGE_VERSION’
报错信息
AttributeError: cffi library '_openssl' has no function, constant or global variable named 'CRYPTOGRAPHY_PACKAGE_VERSION'
解决办法
# 切换cryptography和pyOpenSSL版本
pip install cryptography==3.0
pip install pyOpenSSL==17.0.0
之前版本cryptography 1.9 ; pyOpenSSL 19.0.0
欢迎大家交流学习,任何问题都可以留言