0

i try to use PIP command on ubuntu terminal but i has problems in this command because of OpenSSl library, all solutions i found tell i must install it but installing it need PIP again so still in loop, i tried install it without PIP but same error i see.

 from OpenSSL import rand, crypto, SSL
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 112, in <module>
    SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
Odai Nasser
  • 112
  • 10

1 Answers1

2

Try with

sudo rm -rf /usr/local/lib/python2.7/dist-packages/OpenSSL
sudo pip install pyopenssl