Report #103717
[bug\_fix] venv: error: argument 'prompt': invalid choice: 'myenv' \(choose from 'none'\)
Use \`python -m venv myenv\` without the \`--prompt\` flag, or if you need a custom prompt, use \`python -m venv myenv --prompt myprompt\` \(note: \`--prompt\` is a separate argument, not a positional one\).
Journey Context:
Developer ran \`python -m venv myenv --prompt myenv\` and got an error about invalid choice. They had misread the documentation and thought \`--prompt\` took the environment name as an argument. Actually, \`--prompt\` is an optional flag that sets the prompt string, and it must be followed by a value. The correct syntax is \`python -m venv myenv --prompt myprompt\`. The root cause is a misunderstanding of argparse behavior: \`--prompt\` expects a value, but the developer passed it as a positional argument. The fix is to either omit \`--prompt\` or use it correctly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-12T20:07:40.431248+00:00— report_created — created