【问题标题】:python 3.4 mod_wsgi error installingpython 3.4 mod_wsgi 安装错误
【发布时间】:2018-05-22 20:30:18
【问题描述】:

我现在正忙着为 apache 2.4 / python 3.4 安装 mod_wsgi。我一直在寻找其他一些答案,但似乎没有帮助。我设置了一个虚拟环境并尝试:

pip install mod_wsgi

开始该过程,但我不断收到错误:

mod-wsgi 构建“mod_wsgi.server.mod_wsgi”的构建轮失败 扩展错误:需要 Microsoft Visual C++ 10.0。得到它 “微软视窗 SDK 7.1”: www.microsoft.com/download/details.aspx?id=8279

有人提到最简单的补救办法是安装 Visual Studio 社区版,但我已经安装了 Visual Studio 2017。我还检查了我的安装,并安装了 Microsoft Visual C++ 2010 x64 和 x86 Redistirbutables。

编辑:我也尝试转到提供的链接并安装 windows sdk,之后仍然没有修复

编辑 2:

路径环境变量:

E:\platforms\python3.4.4\;
E:\platforms\python3.4.4\Scripts;
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
E:\platforms\jdk8u172\bin;
C:\Program Files\Microsoft MPI\Bin\;
E:\platforms\python3.6.5\Scripts\;
E:\platforms\python3.6.5;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
E:\Git\cmd;
E:\Git\mingw64\bin;
E:\Git\usr\bin;
C:\Program Files\dotnet\;
C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;
C:\Program Files (x86)\GtkSharp\2.12\bin;
C:\Program Files (x86)\Microsoft Emulator Manager\1.0\;
E:\TortoiseGit\bin;
%GROOVY_HOME%\bin;
%SYSTEMROOT%\System32\OpenSSH\;
E:\platforms\node10.1.0\;
E:\IDE\vs2017\VC\Auxiliary\Build;

【问题讨论】:

  • PATH 变量中的目录是什么?
  • 我确实在非标准的地方有,你以为它没有包含在path环境变量中?
  • @Aziz 我应该在路径中链接哪个文件夹?
  • 是的,你介意分享echo %PATH% 的输出吗,或者至少确保VC++ SDK 在那里。
  • 你是对的,看起来我没有任何与 vc++ 相关的内容。我是否希望将路径添加到 vcvarsall 或其他内容?

标签: c++ django python-3.x apache mod-wsgi


【解决方案1】:

我不明白发生了什么,我尝试从链接安装 Windows SDK,但它也提供了错误。我决定只升级到 python 3.6.5,它似乎已经正确安装了 mod_wsgi

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-07
    • 1970-01-01
    • 2014-12-03
    • 2012-09-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多