title: Python 3 No module named '_ssl'
body: <p><strong>The Problem</strong></p>
  
  <p>While I run you python3 application, it shows</p>
  
  <pre><code>  File "/usr/local/lib/python3.6/ssl.py", line 101, in &lt;module&gt;
  import _ssl             # if we can't import it, let the error propagate
  ModuleNotFoundError: No module named '_ssl'
  </code></pre>
  
  <hr>
  
  <p><strong>What I've tried</strong></p>
  
  <p>install the dependencies</p>
  
  <pre><code>yum install openssl-devel
  </code></pre>
  
  <p>I also edited the <strong>setup.py</strong> file and recomplie python3</p>
  
  <pre><code># Detect SSL support for the socket module (via _ssl)
  search_for_ssl_incs_in = [
                            '/usr/local/ssl/include',
                            '/usr/local/include/openssl', #I've added this line
                            '/usr/contrib/ssl/include/'
                           ]
  </code></pre>
  
  <p>I've complied the openssl with the path configuration</p>
  
  <pre><code>#tar -xzvf openssl-***.tar.gz
  
  #./config --prefix=/usr/local --openssldir=/usr/local/openssl
  
  #make &amp; make install
  </code></pre>
  
  <hr>
  
  <p>CentOS 7 </p>
  
  <p>Python 3.6</p>