Skip to content Skip to sidebar Skip to footer

Python 3.6 Flask With Mod_wsgi On Windows : No Module Named Queue

I was playing around with a Flask/Python RESTful api and all was well until I started trying to learn how to serve it. Of course I tried this out locally. I installed AMPPS since i

Solution 1:

Your mod_wsgi is actually compiled for Python 2.7, not 3.6. The error is because the Queue module got renamed to queue in 3.6, so when import queue under 2.7 it will fail.

You will need to uninstall mod_wsgi and install a version of if that is compiled for Python 3.6. You cannot force a version of mod_wsgi compiled for one Python version to run as a different version by pointing it at a Python virtual environment of a different version. This is because mod_wsgi is linked direct to the Python library of a specific version.

Post a Comment for "Python 3.6 Flask With Mod_wsgi On Windows : No Module Named Queue"