I am using python 2.7.3 and Ubunutu 12.04. When I am running import ssl in python the following error occurs:
>>> import ssl >>> ImportError: No module named _ssl
Keep in mind packages such as openssl and pyopen are already installed. As far as my research goes I need to recompile python with ssl support. However, I know that compiling python by hand is not really the most elegant way to install packages.
Is there any way to get python with ssl support e.g. with an apt-get command?
If not, what would be the best way rebuild python. Should I just compile it while keeping my old version installed via apt-get?