解决 Claude 桌面版 "Virtual Machine Platform not available" 报错

22 阅读1分钟

解决 Claude 桌面版 "Virtual Machine Platform not available" 报错

场景:在 Windows 上安装 Claude 桌面应用后,启动时弹出错误提示:

"Virtual Machine Platform not available. Claude's workspace requires the Virtual Machine Platform on Windows. Enable this feature, then restart."

问题背景

Claude 桌面版(Claude Desktop App)为了提供安全的本地运行环境,采用了容器化隔离技术。这依赖于 Windows 的 Virtual Machine Platform(虚拟机平台) 功能。如果该功能未启用,应用将无法正常启动。

本文提供三种解决方案,从简单到复杂逐一尝试。

方法:通过 PowerShell 命令行启用

适合习惯命令行操作或需要批量部署的用户。

操作步骤

  1. 以管理员身份打开 PowerShell

    • 在开始菜单搜索 "PowerShell"
    • 右键选择 "以管理员身份运行"
  2. 执行启用命令

    dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
    

    命令解释:

    • /online:针对当前运行的操作系统进行操作
    • /enable-feature:启用指定功能
    • /featurename:VirtualMachinePlatform:指定要启用的功能名称
    • /all:启用该功能的所有子组件
    • /norestart:安装完成后不自动重启(需手动重启)
  3. 重启系统

    • 执行完成后关闭 PowerShell
    • 手动重启电脑
    • 重启后验证 Claude 是否能正常启动