简体   繁体   English

无法在带有VS2017的Windows 10上安装Distorm

[英]Can't install distorm on Windows 10 with VS2017

D:\src\distorm-master>py -3.6-32 setup.py install
running install
running build
running custom_build
Compiling with VS150COMNTOOLS: msbuild /p:Configuration=dll /p:Platform=win32 
make/win32/distorm.sln
'"C:\Program Files (x86)\Microsoft Visual 
Studio\2017\Community\Common7\Tools\..\..\vc\vcvarsall.bat"' is not 
recognized as an internal or external command,
operable program or batch file.
compilation with VS150COMNTOOLS failed
error: Failed to compile "make/win32/distorm.sln" with any available compiler

That vcvarsall path doesn't exist. vcvarsall路径不存在。 I found it somewhere else and set VS150COMNTOOLS path correctly, still doesn't work: 我在其他地方找到它并正确设置了VS150COMNTOOLS路径,但仍然无法正常工作:

D:\src\distorm-master>set VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build

D:\src\distorm-master>set vs
VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build
VSCMD_ARG_app_plat=Desktop
VSCMD_ARG_HOST_ARCH=x86
VSCMD_ARG_TGT_ARCH=x86
VSCMD_VER=15.5.2
VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\

D:\src\distorm-master>py -3.6-32 setup.py install
running install
running build
running custom_build
Compiling with VS150COMNTOOLS: msbuild /p:Configuration=dll /p:Platform=win32 make/win32/distorm.sln
The system cannot find the path specified.
compilation with VS150COMNTOOLS failed
error: Failed to compile "make/win32/distorm.sln" with any available compiler

But that path certainly exists: 但是那条路径当然存在:

Directory of C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build

12/17/2017  11:07 PM    <DIR>          .
12/17/2017  11:07 PM    <DIR>          ..
12/17/2017  10:36 PM                13 Microsoft.VCRedistVersion.default.txt
12/17/2017  10:36 PM               291 Microsoft.VCToolsVersion.default.props
12/17/2017  10:36 PM                13 Microsoft.VCToolsVersion.default.txt
12/17/2017  10:36 PM                39 vcvars32.bat
12/17/2017  10:36 PM                39 vcvars64.bat
12/17/2017  10:36 PM             9,187 vcvarsall.bat
12/17/2017  10:36 PM                43 vcvarsamd64_x86.bat
12/17/2017  10:36 PM                43 vcvarsx86_amd64.bat
               8 File(s)          9,668 bytes
               2 Dir(s)  45,319,999,488 bytes free

From the wiki : 维基

As you can see, Python is no longer supported in the compilation itself. 如您所见,编译本身不再支持Python。

There is a cdistorm.vcxproj file in the source repo. cdistorm.vcxproj库中有一个cdistorm.vcxproj文件。 Try using that. 尝试使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在装有VS2013 x64或VS2017 x64的Windows 10上安装LuaJIT LuaRocks Torch7(Torch7失败) - Installing LuaJIT LuaRocks Torch7 on Windows 10 with VS2013 x64 or VS2017 x64 (fail at Torch7) 无法在 Windows 10 上安装 @vue/cli 3 - Can't install @vue/cli 3 on Windows 10 无法在 Windows 10 上安装 python pandas - Can't install python pandas on Windows 10 无法在 windows 10 中安装 JDK 8 - Can't install JDK 8 in windows 10 是否可以从VS2015和VS2017中的同一Visual Studio项目中定位Windows和Android? - Is it possible to target Windows and Android from the same Visual Studio project in VS2015 & VS2017? 如何使用 VS 2019 Preview 在 Windows 10 中安装 boost - How can I Install boost in Windows 10 with VS 2019 Preview cl.exe-vs2017,在Windows 7上构建的本机应用程序,不能在Windows XP下运行 - cl.exe - vs2017, native app build on Windows 7, not run under Windows XP 由于Windows操作系统不同,VS2017(vstest.console.exe)运行单元测试失败 - Running Unit Tests fails with VS2017 (vstest.console.exe) because the Windows OS is different Behaviors SDK在Vs2017中不可用 - Behaviors SDK Not available in Vs2017 使用VS2017增强系统DPI缩放 - Enhanced system DPI scaling with VS2017
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM