uwsgi installation error in windows 7

后端 未结 3 1854
栀梦
栀梦 2021-02-04 04:41

Trying to install uwsgi according to documentation. I\'m getting the below error on Windows 7.

What should I do?

(uwsgi-tutorial) C:\\Users\\Home\\Vide         


        
3条回答
  •  广开言路
    2021-02-04 05:36

    uWSGI can be compiled on Windows using Cygwin. But unfortunately, I was getting the same message with the Cygwin.

    Here I am sharing the other way to install uWSGI on windows.

    Step 1: Download the stable release and extract the tar file

    Step 2: Open uwsgiconfig.py and import platform then replace os.uname()[index] with platform.uname()[index]

    Change

    uwsgi_os = os.uname()[0]
    uwsgi_os_k = re.split('[-+_]', os.uname()[2])[0]
    uwsgi_os_v = os.uname()[3]
    uwsgi_cpu = os.uname()[4]
    

    To

    import platform
    uwsgi_os =  platform.uname()[0]
    uwsgi_os_k = re.split('[-+_]',  platform.uname()[2])[0]
    uwsgi_os_v =  platform.uname()[3]
    uwsgi_cpu =  platform.uname()[4]
    

    Step 3: Run python setup.py install

    Note: You may need to install GCC and configure it.

提交回复
热议问题