Skip to content

Pin Windows setup guide to Python 3.11 to match the workspace#45

Merged
mspinola merged 2 commits into
mainfrom
docs-windows-python-version
Jul 26, 2026
Merged

Pin Windows setup guide to Python 3.11 to match the workspace#45
mspinola merged 2 commits into
mainfrom
docs-windows-python-version

Conversation

@mspinola

Copy link
Copy Markdown
Owner

What

Pins the Windows setup guide to Python 3.11 — the version the rest of the workspace uses (npf/.venv) and the one cotdata's dependencies have prebuilt wheels for.

Why

The guide already said 3.11 but buried it and phrased it as "latest Python 3.11," which invites installing whatever python.org's front page serves. Hitting this in practice: installing Python 3.14 meant norgatedata had no matching wheel, pip fell back to a global per-version install location (AppData\Local\Python\pythoncore-3.14-64) instead of the venv, and the result was the confusing "import cotdata works but cotdata-update is not recognized" trap.

Changes

  • Step 1 now leads with an explicit "use 3.11, and here's why" callout (workspace match + wheel availability) and warns against 3.13/3.14.
  • The python --version check now catches a wrong major.minor and shows how to target 3.11 (uv venv --python 3.11, py -3.11 -m venv .venv).
  • New troubleshooting entry: Dependencies Won't Install on a Newer Python, covering both the build failure and the global-install-path symptom.

Docs-only.

🤖 Generated with Claude Code

mspinola and others added 2 commits July 26, 2026 10:58
The guide already named 3.11 but buried it and said "latest Python 3.11,"
which invites grabbing whatever python.org's front page offers. On a
brand-new Python (3.13/3.14), norgatedata and friends have no matching
wheels, so pip either fails to compile or installs into a global
per-version location instead of the venv, producing the "import works but
cotdata-update not found" trap.

- Lead Step 1 with an explicit "use 3.11, and why" callout, matching
  npf/.venv and wheel availability, warning against newer releases.
- Make the version-check step catch a wrong major.minor and show how to
  target 3.11 (uv venv --python 3.11 / py -3.11 -m venv).
- Add a troubleshooting entry for deps failing to build on a newer Python.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
A uv-created venv ships without a standalone pip, so plain `pip install`
after `uv venv` falls through to the global Python and installs there.
The venv's own python then can't import the package (ModuleNotFoundError)
even though the install reported success. The guide recommended uv but
then showed plain `pip install`, walking straight into this.

- Step 2 uv section: call out that a uv venv has no pip; use uv pip.
- Step 3: add a pip vs uv pip chooser and show the uv form for each
  install variant.
- Troubleshooting: make "plain pip into a uv venv" the first listed
  cause of ModuleNotFoundError, with the where pip / where python check.
- Note the activated prompt may read (cotdata), not just (.venv).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mspinola
mspinola merged commit f99240d into main Jul 26, 2026
5 checks passed
@mspinola
mspinola deleted the docs-windows-python-version branch July 26, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant