Error Updating Python3 pip AttributeError: module ‘lib’ has no attribute ‘OpenSSL_add_all_algorithms’

As version 39.0.0 presented this bug, downgrading the cryptography package solves this, without purging or touching your OS.

pip install cryptography==38.0.4 to downgrade from 39.0.0 which presented this error

EDIT per @thomas,

The error is a result of incompatibility between cryptography and pyopenssl, so if possible, also upgrading to openssl>22.1.0 should work:

pip install -U pyopenssl cryptography

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)