Install uwsgi and pythonuwsgi in python in windows

Source: Internet
Author: User

Install uwsgi and pythonuwsgi in python in windows

1. Install using pip

pip install uwsgi

Error: OS does not have uname ()

Solution:

Go to the uwsgiconfig. py file. First import platform and change OS. unam () to platform. uname.

OS. uname () does not support windows. The platform module supports any system.

 

2. Download uwsgi offline Installation

Https://pypi.python.org/pypi/uWSGI/

Decompress the package and go to the directory.

python setup.py install

Error: Exception: you need a C compiler to builduWSGI

Solution: configure the C compiling environment

If the local machine does not have a C compiling environment, you need to download a compiler (MinGW/tinycc)

Codeblocks is installed on my computer, so MinGW is installed, and then system variables are configured.

Path =; MinGW directory/bin

Http://jingyan.baidu.com/article/6b97984da0bd8a1ca2b0bf90.html

 

3. Install again

If the installation is successful, the system still reports an error. Later, we found that windows does not currently support uwsgi.

Refer:

Http://lists.unbit.it/pipermail/uwsgi/2011-May/002092.html

Http://blog.csdn.net/sunhuaqiang1/article/details/70185022

Https://docs.python.org/3/library/ OS .html? Highlight = uname # OS. uname

Https://stackoverflow.com/questions/32163910/uwsgi-installation-error-in-windows-7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.