{"record":{"id":"df3c280ab3d6aeb1","repo":"astral-sh/uv","slug":"is-not-installed-run-to-install","errorCode":null,"errorMessage":"`{}` is not installed; run `{}` to install","messagePattern":"`(.+?)` is not installed; run `(.+?)` to install","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/uv/src/commands/tool/upgrade.rs","lineNumber":285,"sourceCode":"    python_platform: Option<&TargetTriple>,\n    printer: Printer,\n    installed_tools: &InstalledTools,\n    args: &ResolverInstallerOptions,\n    client_builder: &BaseClientBuilder<'_>,\n    cache: &Cache,\n    workspace_cache: &WorkspaceCache,\n    filesystem: &ResolverInstallerOptions,\n    installer_metadata: bool,\n    concurrency: &Concurrency,\n    preview: Preview,\n) -> Result<UpgradeReport> {\n    let tool_locks = preview.is_enabled(PreviewFeature::ToolInstallLocks);\n    // Ensure the tool is installed.\n    let existing_tool_receipt = match installed_tools.get_tool_receipt(name) {\n        Ok(Some(receipt)) => receipt,\n        Ok(None) => {\n            let install_command = format!(\"uv tool install {name}\");\n            return Err(anyhow::anyhow!(\n                \"`{}` is not installed; run `{}` to install\",\n                name.cyan(),\n                install_command.green()\n            ));\n        }\n        Err(_) => {\n            let install_command = format!(\"uv tool install --force {name}\");\n            return Err(anyhow::anyhow!(\n                \"`{}` is missing a valid receipt; run `{}` to reinstall\",\n                name.cyan(),\n                install_command.green()\n            ));\n        }\n    };\n\n    let environment = match installed_tools.get_environment(name, cache) {\n        Ok(Some(environment)) => environment,\n        Ok(None) => {","sourceCodeStart":267,"sourceCodeEnd":303,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv/src/commands/tool/upgrade.rs#L267-L303","documentation":"Error \"`{}` is not installed; run `{}` to install\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv/src/commands/tool/upgrade.rs:285 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f1a42680ff5272232d65748acf338b19778dde24","analyzedAt":"2026-08-16T04:51:47.599Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}