I'm not able to install mod_wsgi even tho im installed visual c++

Question:

I wanna install mod_wsigi (pip install mod_wsgi) for my local apache server on windows for that i allreday installed Microsoft Visual C++ 2017 Redistributable (x64) – 14.16.27027. still after that im not able to install mod.

I will be very thankful to resole this problem.

ERROR: Complete output from command 'c:pythonpython37-32python.exe' -u -c 'import setuptools, tokenize;__file__='

“‘”‘C:UsersJovidAppDataLocalTemppip-install-b193h_8jmod-wsgisetup.py'”‘”‘;f=getattr(tokenize, ‘”‘”‘open’
“‘”‘, open)(file);code=f.read().replace(‘”‘”‘rn'”‘”‘, ‘”‘”‘n'”‘”‘);f.close();exec(compile(code, file, ‘”‘”‘ex
ec'”‘”‘))’ install –record ‘C:UsersJovidAppDataLocalTemppip-record-2jv00ikhinstall-record.txt’ –single-version-
externally-managed –compile:
ERROR: c:pythonpython37-32libdistutilsdist.py:274: UserWarning: Unknown distribution option: ‘bugtrack_url’
warnings.warn(msg)
running install
running build
running build_py
creating build
creating buildlib.win32-3.7
creating buildlib.win32-3.7mod_wsgi
copying src__init__.py -> buildlib.win32-3.7mod_wsgi
creating buildlib.win32-3.7mod_wsgiserver
copying srcserverapxs_config.py -> buildlib.win32-3.7mod_wsgiserver
copying srcserverenviron.py -> buildlib.win32-3.7mod_wsgiserver
copying srcserver__init__.py -> buildlib.win32-3.7mod_wsgiserver
creating buildlib.win32-3.7mod_wsgiservermanagement
copying srcservermanagement__init__.py -> buildlib.win32-3.7mod_wsgiservermanagement
creating buildlib.win32-3.7mod_wsgiservermanagementcommands
copying srcservermanagementcommandsrunmodwsgi.py -> buildlib.win32-3.7mod_wsgiservermanagementcommands
copying srcservermanagementcommands__init__.py -> buildlib.win32-3.7mod_wsgiservermanagementcommands
creating buildlib.win32-3.7mod_wsgidocs
copying docs_buildhtml__init__.py -> buildlib.win32-3.7mod_wsgidocs
creating buildlib.win32-3.7mod_wsgiimages
copying images__init__.py -> buildlib.win32-3.7mod_wsgiimages
copying imagessnake-whiskey.jpg -> buildlib.win32-3.7mod_wsgiimages
running build_ext
building ‘mod_wsgi.server.mod_wsgi’ extension
error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: https://visualstudio.m
icrosoft.com/downloads/
—————————————-
ERROR: Command “‘c:pythonpython37-32python.exe’ -u -c ‘import setuptools, tokenize;file='”‘”‘C:UsersJovidAp
pDataLocalTemppip-install-b193h_8jmod-wsgisetup.py'”‘”‘;f=getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(file);co
de=f.read().replace(‘”‘”‘rn'”‘”‘, ‘”‘”‘n'”‘”‘);f.close();exec(compile(code, file, ‘”‘”‘exec'”‘”‘))’ install –rec
ord ‘C:UsersJovidAppDataLocalTemppip-record-2jv00ikhinstall-record.txt’ –single-version-externally-managed –com
pile” failed with error code 1 in C:UsersJovidAppDataLocalTemppip-install-b193h_8jmod-wsgi

Asked By: Jovid Nurov

||

Answers:

The error message, and its solution, is in the text you included in your question:

Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: https://visualstudio.microsoft.com/downloads/

This is not the same as the Microsoft Visual C++ redistributable. The Visual C++ Redistributable only includes libraries; the Visual C++ Build Tools are a full toolchain, including a C++ compiler.

Answered By: user149341

Try to install MS Visual C++ Build Tools but the problem is still there. Try to download the compiled module from: https://www.lfd.uci.edu/~gohlke/pythonlibs/ and install the .whl successfully.

Answered By: Herovn
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.