title: deploying python flask application in apache 24
body: <p>I have developed a python (python 3.6 32bit) flask application and I need this to be deployed in a windows server with apache24 32bit.</p>
  <p>I referred steps in <a href="https://medium.com/@madumalt/flask-app-deployment-in-windows-apache-server-mod-wsgi-82e1cfeeb2ed" rel="nofollow noreferrer">https://medium.com/@madumalt/flask-app-deployment-in-windows-apache-server-mod-wsgi-82e1cfeeb2ed</a></p>
  <p>When I try to launch the httpd.exe in apache24 am getting the below error</p>
  <pre><code>[Sun Jun 21 20:36:15.112840 2020] [mpm_winnt:notice] [pid 20600:tid 476] AH00455: Apache/2.4.43 (Win32) mod_wsgi/4.7.1 Python/3.6 configured -- resuming normal operations
  [Sun Jun 21 20:36:15.112840 2020] [mpm_winnt:notice] [pid 20600:tid 476] AH00456: Apache Lounge VS16 Server built: Apr 21 2020 16:02:41
  [Sun Jun 21 20:36:15.112840 2020] [core:notice] [pid 20600:tid 476] AH00094: Command line: 'httpd.exe -d C:/Apache24'
  [Sun Jun 21 20:36:15.123841 2020] [mpm_winnt:notice] [pid 20600:tid 476] AH00418: Parent: Created child process 2064
  Fatal Python error: Py_Initialize: unable to load the file system codec
  ModuleNotFoundError: No module named 'encodings'
  
  Current thread 0x00002dfc (most recent call first):
  [Sun Jun 21 20:36:21.808509 2020] [mpm_winnt:crit] [pid 20600:tid 476] AH00419: master_main: create child process failed. Exiting.
  
  Please find the SET configurations below,
  OS=Windows_NT
  Path=C:\Python36-32\Scripts\;C:\Python36-32\;C:\Program Files\Common Files\Micro
  soft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Files\Micros
  oft Shared\Microsoft Online Services;C:\ProgramData\Oracle\Java\javapath;C:\Wind
  ows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowe
  rShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\
  
  
  PYTHONHOME=C:\Python36-32\
  PYTHONPATH=C:\Python36-32\Scripts\
  </code></pre>