Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uWSGI fails to install on Windows

Tags:

python

wsgi

I'm trying to install uWSGI on Windows using pip install uwsgi and it keeps failing with the bellow error:

Command "python setup.py egg_info" failed with error code 1 in c:\users\fathima\appdata\local\temp\pip-build-igkqn2\uwsgi\
like image 600
Fahtima Avatar asked Oct 26 '16 17:10

Fahtima


People also ask

Is uWSGI compatible with Windows?

uWSGI doesn't work on bare Windows. (It might work on Cygwin, but that's probably not something you want to pursue.) so i can't install on windows unless i get cygwin?

Which Python is uWSGI using?

Preface¶ In both Ubuntu 18.04 (Bionic Beaver) and 18.10 (Cosmic Cuttlefish) the uWSGI plugin for Python 3 use the default version 3.6 . It's possible to compile an uWSGI plugin using the official Python 3.7 package, and we will see how to do it step by step.


1 Answers

The easy fix which i find was to download and modify configurations

Download this stable lts release of uWSGI

Then after extracting, quickly navigate to the path where this file is available 'uwsgiconfig.py' open it.

Do the following changes: import platform

and then wherever you encounter os.uname()[x-index] replace it with platform.uname()[x-index]

finally open the terminal/cmd in the working path and run 'python setup.py install' (make sure you have gcc installed & configured)

like image 78
Shadab Shaikh Avatar answered Oct 05 '22 02:10

Shadab Shaikh