OpenSSL error
Peng Yu
pengyu.ut at gmail.com
Thu Sep 6 12:32:13 EDT 2018
Hi,
I got the following error. Does anybody know how to fix it? Thanks.
$ pip
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pip",
line 7, in <module>
from pip._internal import main
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/_internal/__init__.py",
line 42, in <module>
from pip._internal import cmdoptions
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/_internal/cmdoptions.py",
line 16, in <module>
from pip._internal.index import (
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/_internal/index.py",
line 14, in <module>
from pip._vendor import html5lib, requests, six
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py",
line 97, in <module>
from pip._vendor.urllib3.contrib import pyopenssl
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py",
line 46, in <module>
import OpenSSL.SSL
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/__init__.py",
line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py",
line 118, in <module>
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
--
Regards,
Peng
More information about the Python-list
mailing list