I see. That's different than I understood you earlier.
With this information, I would do this:
Code: Select all
python -c "import sys; print sys.path; import OpenSSL; print OpenSSL.__file__ ; print '\n\nBye ...' "
and
Code: Select all
sudo python -c "import sys; print sys.path; import OpenSSL; print OpenSSL.__file__ ; print '\n\nBye ...' "
Post the output here.
Here's mine:
Code: Select all
sander@haring:~$ python -c "import sys; print sys.path; import OpenSSL; print OpenSSL.__file__ ; print '\n\nBye ...' "
['', '/usr/local/lib/python2.7/dist-packages/gspread-0.2.2-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/shodan-1.3.4-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/click-4.0-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/CherryPy-3.8.0-py2.7.egg', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-i386-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/pymodules/python2.7']
/usr/lib/python2.7/dist-packages/OpenSSL/__init__.pyc
Bye ...
resp
Code: Select all
sander@haring:~$ sudo python -c "import sys; print sys.path; import OpenSSL; print OpenSSL.__file__ ; print '\n\nBye ...' "
['', '/usr/local/lib/python2.7/dist-packages/gspread-0.2.2-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/shodan-1.3.4-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/click-4.0-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/CherryPy-3.8.0-py2.7.egg', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-i386-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/pymodules/python2.7']
/usr/lib/python2.7/dist-packages/OpenSSL/__init__.pyc
Bye ...