jdx/mise · error
python cannot currently be compiled on windows with…
Error message
python cannot currently be compiled on windows with core:python, use vfox:python instead
What it means
The core python plugin's source-build path (python-build / install_or_update_python_build) cannot run on Windows; ensure_not_windows() bails before attempting compilation and points users at the vfox-based python plugin instead. mise throws this because the build toolchain the core plugin drives is unix-only.
Solutions
- Use the vfox python plugin: `mise use vfox:version-fox/vfox-python@<version>` or `mise settings set python.compile false` and pick a precompiled version
- Install a python version available precompiled so the compile path is never reached
- Run the build inside WSL where the unix compile path works
Defensive patterns
Strategy: fallback
Validate before calling
// pre-install guard for CI on windows runners
if (process.platform === "win32" && settings.python?.compile) {
throw new Error("core python cannot compile on windows; use vfox:version-fox/vfox-python or a precompiled version");
} Try / catch
try {
await $`mise install python@${ver}`;
} catch (e) {
if (String(e).includes("cannot currently be compiled on windows")) {
await $`mise use vfox:version-fox/vfox-python@${ver}`;
} else throw e;
} Prevention
- On Windows rely on precompiled python builds; never set python.compile=true there
- Use vfox-python for windows builds needing compilation
- Run heavy python source builds inside WSL instead
When it happens
Trigger: On a Windows host, installing python with compilation required (e.g. python.compile=true, or a version with no precompiled build) reaching ensure_not_windows via install_or_update_python_build.
Common situations: Forcing python.compile=true on Windows to get an EOL python version; a version absent from python-build-standalone causing a fallthrough to the compile path on Windows.
Understand the failure class
Background: "unsupported platform" / "not supported on this platform" errors: what they mean and how to fix them — this error's family across 47 libraries.
Related errors
- brew-cask prune is not supported on windows
- brew prune is not supported on windows
- daemon presets are not supported on Windows yet
- daemon presets are not supported on Windows yet
- Ruby engine ' ' is not supported on Windows.\nOnly standard…
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/978b672f5b31ee95.
Report an issue: GitHub.
Appendix: source
Thrown at src/plugins/core/python.rs:1568
/// `versions.json` dates are plain `YYYY-MM-DD`; `created_at` wants a timestamp.
fn pypy_created_at(date: Option<&str>) -> Option<String> {
let date = date?;
if date.len() != 10 {
return None;
}
Some(format!("{date}T00:00:00Z"))
}
fn pypy_file_for<'a>(release: &'a PypyRelease, platform: &str, arch: &str) -> Option<&'a PypyFile> {
release
.files
.iter()
.find(|f| f.platform == platform && f.arch == arch)
}
fn ensure_not_windows() -> eyre::Result<()> {
if cfg!(windows) {
bail!(
"python cannot currently be compiled on windows with core:python, use vfox:python instead"
);
}
Ok(())
}
fn filter_freethreaded(v: &str, flavor: &Option<String>) -> bool {
flavor.as_ref().is_some_and(|f| f.contains("freethreaded")) || !v.contains("freethreaded")
}
#[cfg(test)]
mod tests {
use super::*;
fn opts_with(key: &str, value: &str) -> ToolVersionOptions {
opts_with_value(key, toml::Value::String(value.to_string()))
}
View on GitHub (pinned to 533346cc37)