Installing Python from sources with all the modules

David Robinow drobinow at gmail.com
Mon Dec 16 23:26:09 EST 2013


On Mon, Dec 16, 2013 at 8:55 PM, shankha <shankhabanerjee at gmail.com> wrote:
> Hi,
> I am trying to install Python 3.3 from the latest sources on linux.
>
> After the installation when I try to run the following I get a error:
>
> ./python
> Python 3.3.3 (default, Dec 16 2013, 18:28:25)
> [GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import ssl
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/home/shankha/Python-git/Python3-3/Python-3.3.3/Lib/ssl.py", line
> 60, in <module>
>     import _ssl             # if we can't import it, let the error propagate
> ImportError: No module named '_ssl'
>
>
> Is there a way while installing from sources I enable all modules to be
> installed.


You need to install the openssl development package. I don't know how
you do that on Red Hat.  Don't use it myself.
 There will probably be other missing modules for which you will have
to install prerequisites for. Once you do that they should build
automatically when you rebuild.



More information about the Python-list mailing list