codex - 💡(How to fix) Fix Codex ignores VSCode selected Python interpreter / virtual environment

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

What version of the IDE extension are you using?

26.513.21555

What subscription do you have?

ChatGPT Plus

Which IDE are you using?

Visual Studio Code

What platform is your computer?

Linux chaosframe 6.x x86_64 GNU/Linux

What issue are you seeing?

Codex appears to ignore the Python interpreter selected in VSCode and instead uses the system Python interpreter.

Expected behavior: When selecting a project-local virtual environment via:

Python: Select Interpreter

for example:

./xvx-venv/bin/python

Codex should inherit and use that interpreter/environment.

Observed behavior: Codex uses:

/usr/bin/python

instead of the selected venv interpreter.

What steps can reproduce the bug?

Reproduction steps:

Create a project-local virtual environment: python3 -m venv xvx-venv Select the interpreter in VSCode: ./xvx-venv/bin/python Open Codex inside VSCode Ask Codex: which python

Result: /usr/bin/python

What is the expected behavior?

./xvx-venv/bin/python

Additional information

For any questions: [email protected]

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex ignores VSCode selected Python interpreter / virtual environment