This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: (python2.7.10)ImportError: No module named _ssl
Type: behavior Stage: resolved
Components: Extension Modules Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: a568953256, zach.ware
Priority: normal Keywords:

Created on 2015-11-01 02:22 by a568953256, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg253820 - (view) Author: nanxiu (a568953256) Date: 2015-11-01 02:22
After I install python2.7.10
I run:import ssl,then I find this error:

Python 2.7.10 (default, Oct 29 2015, 04:13:03) 
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/bae/nanxiu/software/Python-2.7.10/Lib/ssl.py", line 97, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: No module named _ssl
>>>
msg253822 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2015-11-01 04:54
Do "yum install openssl-devel", then rebuild Python. There are probably other modules that also didn't build, setup.py will report them at its end.
History
Date User Action Args
2022-04-11 14:58:23adminsetgithub: 69712
2015-11-01 04:54:45zach.waresetstatus: open -> closed

nosy: + zach.ware
messages: + msg253822

resolution: not a bug
stage: resolved
2015-11-01 02:22:47a568953256create