There is something broken about your Python installation if you think you are 
using Python 3.11.

The compiler output shows:

    -Ic:\users\91915\appdata\local\programs\python\python37-32\include 
-Ic:\users\91915\appdata\local\programs\python\python37-32\Include

As you can see it is trying to use Python 3.7.

Uninstall the Python 3.7 version and reinstall Python 3.11, ensuring that it is 
installed for all users.

Graham

> On 20 Jan 2024, at 4:37 pm, Ananth Mandli <[email protected]> wrote:
> 
> I am using 
> ==> Python 3.11.1
> ==>Apache24
> ==>Microsoft visual c++ 2015-2022 redistributable
> 
> On Sat, 20 Jan 2024 at 01:29, Graham Dumpleton <[email protected] 
> <mailto:[email protected]>> wrote:
>> This error generally indicates you have the wrong version or a badly 
>> installed version of the Microsoft Visual Studio build tools.
>> 
>> Try reinstalling Visual Studio Build Tools, making sure it is the correct 
>> version for the version of Python you are using. Since you are using an 
>> older version of Python, it may be an older version of the Visual Studio 
>> Build Tools that is required. Better still, upgrade you Python version to 
>> the latest.
>> 
>>> On 19 Jan 2024, at 11:20 pm, Ananth Mandli <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>> 
>>>  Building wheel for mod_wsgi (setup.py) ... error
>>>   error: subprocess-exited-with-error
>>> 
>>>   × python setup.py bdist_wheel did not run successfully.
>>>   │ exit code: 1
>>>   ╰─> [375 lines of output]
>>> 
>>> 
>>> 
>>>   creating build\temp.win32-cpython-37\Release\src\server
>>>       "C:\Program Files (x86)\Microsoft Visual 
>>> Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX86\x86\cl.exe" /c 
>>> /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\xampp\apache/include 
>>> -Ic:\users\91915\appdata\local\programs\python\python37-32\include 
>>> -Ic:\users\91915\appdata\local\programs\python\python37-32\Include 
>>> "-IC:\Program Files (x86)\Microsoft Visual 
>>> Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\include" "-IC:\Program 
>>> Files (x86)\Microsoft Visual 
>>> Studio\2022\BuildTools\VC\Auxiliary\VS\include" /Tcsrc/server\mod_wsgi.c 
>>> /Fobuild\temp.win32-cpython-37\Release\src/server\mod_wsgi.obj
>>> 
>>>       mod_wsgi.c
>>>       
>>> C:\Users\91915\AppData\Local\Temp\pip-install-8p707y44\mod-wsgi_03760927e1fe4d73a104f496ddd3278c\src\server\wsgi_apache.h(39):
>>>  fatal error C1083: Cannot open include file: 'ws2tcpip.h': No such file or 
>>> directory
>>> 
>>> 
>>>       error: command 'C:\\Program Files (x86)\\Microsoft Visual 
>>> Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX86\\x86\\cl.exe'
>>>  failed with exit code 2
>>>       [end of output]
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "modwsgi" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to [email protected] 
>>> <mailto:[email protected]>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/modwsgi/a0e4c5a3-20c4-4c3b-8d63-d847796250b7n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/modwsgi/a0e4c5a3-20c4-4c3b-8d63-d847796250b7n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "modwsgi" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <mailto:[email protected]>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/modwsgi/2514DFA1-2CAE-435E-8325-939097C0BB47%40gmail.com
>>  
>> <https://groups.google.com/d/msgid/modwsgi/2514DFA1-2CAE-435E-8325-939097C0BB47%40gmail.com?utm_medium=email&utm_source=footer>.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/CAH3LPqmjFV6sg6kSHHJqqWZ0rparapAVn-dEgJdj%3DJvz6qjUTA%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/modwsgi/CAH3LPqmjFV6sg6kSHHJqqWZ0rparapAVn-dEgJdj%3DJvz6qjUTA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/63F42868-4C20-4BBE-B717-DC5E85510393%40gmail.com.

Reply via email to