{"record":{"id":"23d44248ff4d7872","repo":"jdx/mise","slug":"no-precompiled-python-found-for-tv-on-platform","errorCode":null,"errorMessage":"no precompiled python found for {tv} on {platform}","messagePattern":"no precompiled python found for (.+?) on (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/plugins/core/python.rs","lineNumber":527,"sourceCode":"            let precompile_info = precompiled_versions\n                .iter()\n                .rev()\n                .find(|(v, _, _)| &tv.version == v);\n            let (tag, filename) = match precompile_info {\n                Some((_, tag, filename)) => (tag, filename),\n                None => {\n                    if cfg!(windows)\n                        || Settings::get().python_compile(CompilePurpose::Inspect) == Some(false)\n                    {\n                        if !cfg!(windows) {\n                            hint!(\n                                \"python_compile\",\n                                \"To compile python from source, run\",\n                                \"mise settings python.compile=1\"\n                            );\n                        }\n                        let platform = python_precompiled_platform();\n                        bail!(\"no precompiled python found for {tv} on {platform}\");\n                    }\n                    let available = precompiled_versions.iter().map(|(v, _, _)| v).collect_vec();\n                    if available.is_empty() {\n                        debug!(\"no precompiled python found for {}\", tv.version);\n                    } else {\n                        warn!(\n                            \"no precompiled python found for {}, force mise to use a precompiled version with `mise settings set python.compile=false`\",\n                            tv.version\n                        );\n                    }\n                    trace!(\n                        \"available precompiled versions: {}\",\n                        available.into_iter().join(\", \")\n                    );\n                    return self.install_compiled(ctx, tv).await;\n                }\n            };\n","sourceCodeStart":509,"sourceCodeEnd":545,"githubUrl":"https://github.com/jdx/mise/blob/afd2eddd3a50c16190efc1c7e94404b48f72af57/src/plugins/core/python.rs#L509-L545","documentation":"core:python installs standalone-build (python-build-standalone) precompiled distributions. When no precompiled build matches the requested version and current platform, and compilation is not enabled (settings python.compile=1), mise fails listing the version and detected platform.","triggerScenarios":"`mise install python@<version>` where the precompiled manifest has no entry for (version, platform) and python.compile is falsy; e.g. brand-new CPython release not yet in the standalone builds, or exotic platform/arch.","commonSituations":"Newly released Python version ahead of prebuilt publishing; musl/Alpine or uncommon CPU architectures; mismatched python.precompiled_os/arch settings excluding all candidates.","solutions":["Enable compilation: `mise settings python.compile=1`","Choose a Python version available in python-build-standalone releases","Fix python.precompiled_os / python.precompiled_arch settings if they were overridden incorrectly","Use vfox:python for platforms core:python doesn't cover"],"exampleFix":"// before\nmise settings set python.precompiled_os freebsd  // filters out everything\n\n// after\nmise settings unset python.precompiled_os\n# or\nmise settings set python.compile 1","handlingStrategy":"validation","validationCode":"[[ -n \"${MISE_PYTHON_COMPILE:-}\" ]] || curl -fsSL https://raw.githubusercontent.com/astral-sh/python-build-standalone/latest/latest-release.json | jq -e --arg v \"3.12.7\" 'has($v)' >/dev/null || echo 'no prebuilt; set python.compile=1'","typeGuard":null,"tryCatchPattern":"if ! mise install python@\"$VER\"; then\n  mise settings set python.compile 1\n  mise install python@\"$VER\"\nfi","preventionTips":["Confirm the version exists in python-build-standalone releases before pinning","Do not set python.precompiled_os/arch unless the platform differs from the host","On musl/minimal images enable python.compile up front"],"tags":["python","install","precompiled","platform"],"backgroundTag":"resource-not-found","analyzedSha":"afd2eddd3a50c16190efc1c7e94404b48f72af57","analyzedAt":"2026-09-09T01:38:25.179Z","contentChangedAt":"2026-09-09T01:38:25.179Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}