Installing uWSGI on Windows 10
uWSGI is a fast, secure and flexible application server that can be used to deploy various web applications. Although it is primarily designed for Unix systems, it can also be installed on Windows.
In this tutorial, we will be learning how to install uWSGI on Windows 10.
Prerequisites
- A Windows 10 machine
- Python 3.x installed
- A C compiler (Visual Studio 2015 or above)
- Git command line interface installed
Steps
Open Command Prompt as Administrator.
Install uWSGI using pip:
pip install uwsgiClone uWSGI repository from Github to any directory:
git clone https://github.com/unbit/uwsgi.gitChange to the directory where the cloned repository is located.
cd uwsgiBuild uWSGI using the following command. Replace
python3.x.msiwith the name of the Python installer you have downloaded:uwsgi --build-plugin "plugins/python python3.x msi"The command above will generate a file named
_python3.x_msi_plugin.soin theuwsgidirectory.Finally, copy the generated
_python3.x_msi_plugin.sofile to thesite-packagesdirectory of your Python installation.copy _python3.x_msi_plugin.so C:\Python3x\Lib\site-packages\uwsgi\Replace
Python3xwith the actual version of Python you have installed.Now, open a new Command Prompt window and test the uWSGI installation:
uwsgi --versionIf you see a version number displayed, then uWSGI has been successfully installed on your Windows 10 machine.
Congratulations! You have successfully installed uWSGI on Windows 10. You can now use it to deploy and serve web applications.