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\
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?
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.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With