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

Steps

  1. Open Command Prompt as Administrator.

  2. Install uWSGI using pip:

    pip install uwsgi
    
  3. Clone uWSGI repository from Github to any directory:

    git clone https://github.com/unbit/uwsgi.git
    
  4. Change to the directory where the cloned repository is located.

    cd uwsgi
    
  5. Build uWSGI using the following command. Replace python3.x.msi with the name of the Python installer you have downloaded:

    uwsgi --build-plugin "plugins/python python3.x msi"
    
  6. The command above will generate a file named _python3.x_msi_plugin.so in the uwsgi directory.

  7. Finally, copy the generated _python3.x_msi_plugin.so file to the site-packages directory of your Python installation.

    copy _python3.x_msi_plugin.so C:\Python3x\Lib\site-packages\uwsgi\
    

    Replace Python3x with the actual version of Python you have installed.

  8. Now, open a new Command Prompt window and test the uWSGI installation:

    uwsgi --version
    

    If 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.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!