SoftwareRadar: two Python environments and a missing import
Recorded 17 October 2026: Python 3.9.6, bundled pip 21.2.4.

Run:
  python3 -I vscode-python-environment-demo.py

Use installed Python 3.9+ with venv and bundled ensurepip. The runner accepts
no arguments. It does not install a Python interpreter or contact PyPI.

The runner creates two new temporary virtual environments without system
site-packages. It bootstraps each one's pip from Python's bundled ensurepip,
builds a fictional dependency-free wheel locally, and installs that local
wheel with --no-index --no-deps. No third-party build hooks are run.
Subprocesses use explicit interpreter paths and isolated Python mode.
Inherited Python and pip environment settings are not forwarded, and pip
configuration loading is disabled. No shell activation is performed.

Expected stages:
  Before installation: A fails to import, B fails to import.
  Install into A: A imports, B still raises ModuleNotFoundError.
  Install into B: both import their own copy.

Each interpreter reports its executable, prefix and imported module path.
The runner asserts those paths belong to its own environments and verifies
that both environments differ from the base interpreter. The owned temporary
directory is removed on normal exit, including exceptions in the test body.
The JSON is printed only after successful assertions and confirmed cleanup.
Recorded temporary paths use <temp> so they can be compared across runs.

This is an offline Python/pip example, not a completed VS Code UI, extension,
debugger or notebook trial. It demonstrates one cause of a missing import.
An import error can have other causes. No existing project, environment,
account, dependency installation or workspace setting is changed.

Files:
  vscode-python-environment-demo.py
  vscode-python-environment-observations.json
  vscode-python-environment-README.txt

Profile: https://softwareradar.co.uk/software/visual-studio-code/
