![无法安装 Visual Studio 2017](https://linux22.com/image/1533052/%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%20Visual%20Studio%202017.png)
我正在尝试在 Windows 10 计算机上安装 Visual Studio 2017。我尝试过以管理员和非管理员身份安装。我收到以下错误并且安装失败:
The product failed to install the listed workloads and components due to one or more package failures.
Incomplete workloads
Desktop development with C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=15.0.26403.0)
Linux development with C++ (Microsoft.VisualStudio.Workload.NativeCrossPlat,version=15.0.26323.1)
Node.js development (Microsoft.VisualStudio.Workload.Node,version=15.0.26323.1)
Visual Studio core editor (Microsoft.VisualStudio.Workload.CoreEditor,version=15.0.26228.0)
Incomplete components
Architecture tools for C++ (Microsoft.VisualStudio.ComponentGroup.ArchitectureTools.Native,version=15.0.26208.0)
C++ profiling tools (Microsoft.VisualStudio.Component.VC.DiagnosticTools,version=15.0.26208.0)
Class Designer (Microsoft.VisualStudio.Component.ClassDesigner,version=15.0.26208.0)
Code Map (Microsoft.VisualStudio.Component.CodeMap,version=15.0.26208.0)
Connectivity and publishing tools (Microsoft.VisualStudio.Component.Common.Azure.Tools,version=1.9.170119.3)
Developer Analytics tools (Microsoft.VisualStudio.Component.AppInsights.Tools,version=15.0.26323.1)
DGML editor (Microsoft.VisualStudio.Component.GraphDocument,version=15.0.26208.0)
Graphics debugger and GPU profiler for DirectX (Microsoft.VisualStudio.Component.Graphics.Tools,version=15.0.26208.0)
JavaScript and TypeScript language support (Microsoft.VisualStudio.Component.JavaScript.TypeScript,version=15.0.26412.1)
JavaScript diagnostics (Microsoft.VisualStudio.Component.JavaScript.Diagnostics,version=15.0.26208.0)
Just-In-Time debugger (Microsoft.VisualStudio.Component.Debugger.JustInTime,version=15.0.26208.0)
Node.js support (Microsoft.VisualStudio.Component.Node.Tools,version=15.0.26323.1)
Profiling tools (Microsoft.VisualStudio.Component.DiagnosticTools,version=15.0.26208.0)
Text Template Transformation (Microsoft.VisualStudio.Component.TextTemplating,version=15.0.26208.0)
Visual C++ core desktop features (Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core,version=15.0.26323.1)
Visual C++ for Linux Development (Component.MDD.Linux,version=15.0.26208.0)
Visual C++ tools for CMake (Microsoft.VisualStudio.Component.VC.CMake.Project,version=15.0.26208.0)
Visual Studio C++ core features (Microsoft.VisualStudio.Component.VC.CoreIde,version=15.0.26208.0)
Visual Studio core editor (Microsoft.VisualStudio.Component.CoreEditor,version=15.0.26208.0)
Web Deploy (Microsoft.VisualStudio.Component.WebDeploy,version=15.0.26208.0)
WebSocket4Net (Component.WebSocket,version=15.0.26208.0)
You can search for solutions using the information below, modify your selections for the above workloads and components and retry the installation, or remove the product from your machine.
Following is a collection of individual package failures that led to the incomplete workloads and components above. To search for existing reports of these specific problems, please copy and paste the URL from each package failure into a web browser. If the issue has already been reported, you can find solutions or workarounds there. If the issue has not been reported, you can create a new issue where other people will be able to find solutions or workarounds.
Package 'Microsoft.VisualStudio.MinShell,version=15.0.26430.4' failed to install.
Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.MinShell;PackageAction=Install;ReturnCode=-2147024864
Impacted workloads
Desktop development with C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=15.0.26403.0)
Linux development with C++ (Microsoft.VisualStudio.Workload.NativeCrossPlat,version=15.0.26323.1)
Node.js development (Microsoft.VisualStudio.Workload.Node,version=15.0.26323.1)
Visual Studio core editor (Microsoft.VisualStudio.Workload.CoreEditor,version=15.0.26228.0)
Impacted components
Architecture tools for C++ (Microsoft.VisualStudio.ComponentGroup.ArchitectureTools.Native,version=15.0.26208.0)
C++ profiling tools (Microsoft.VisualStudio.Component.VC.DiagnosticTools,version=15.0.26208.0)
Class Designer (Microsoft.VisualStudio.Component.ClassDesigner,version=15.0.26208.0)
Code Map (Microsoft.VisualStudio.Component.CodeMap,version=15.0.26208.0)
Connectivity and publishing tools (Microsoft.VisualStudio.Component.Common.Azure.Tools,version=1.9.170119.3)
Developer Analytics tools (Microsoft.VisualStudio.Component.AppInsights.Tools,version=15.0.26323.1)
DGML editor (Microsoft.VisualStudio.Component.GraphDocument,version=15.0.26208.0)
Graphics debugger and GPU profiler for DirectX (Microsoft.VisualStudio.Component.Graphics.Tools,version=15.0.26208.0)
JavaScript and TypeScript language support (Microsoft.VisualStudio.Component.JavaScript.TypeScript,version=15.0.26412.1)
JavaScript diagnostics (Microsoft.VisualStudio.Component.JavaScript.Diagnostics,version=15.0.26208.0)
Just-In-Time debugger (Microsoft.VisualStudio.Component.Debugger.JustInTime,version=15.0.26208.0)
Node.js support (Microsoft.VisualStudio.Component.Node.Tools,version=15.0.26323.1)
Profiling tools (Microsoft.VisualStudio.Component.DiagnosticTools,version=15.0.26208.0)
Text Template Transformation (Microsoft.VisualStudio.Component.TextTemplating,version=15.0.26208.0)
Visual C++ core desktop features (Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core,version=15.0.26323.1)
Visual C++ for Linux Development (Component.MDD.Linux,version=15.0.26208.0)
Visual C++ tools for CMake (Microsoft.VisualStudio.Component.VC.CMake.Project,version=15.0.26208.0)
Visual Studio C++ core features (Microsoft.VisualStudio.Component.VC.CoreIde,version=15.0.26208.0)
Visual Studio core editor (Microsoft.VisualStudio.Component.CoreEditor,version=15.0.26208.0)
Web Deploy (Microsoft.VisualStudio.Component.WebDeploy,version=15.0.26208.0)
WebSocket4Net (Component.WebSocket,version=15.0.26208.0)
Log
C:\TEMP\dd_setup_20170615130916_003_Microsoft.VisualStudio.MinShell.log
Details
Return code: -2147024864
Return code details: The process cannot access the file 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\PrivateAssemblies\CheckHyperVHost.exe' because it is being used by another process.
我运行了handle
它CheckHyperVHost.exe
,但它没有显示任何具有该文件句柄的程序。
此外,我检查了这个类似的问题并确认我这台机器上没有安装防病毒软件。