Python environment commands
pinset venv create
Install the selected CPython runtime if needed, then create or validate the project .venv.
View source on GitHub ↗| Field | Description |
|---|---|
| Purpose | Install the selected CPython runtime if needed, then create or validate the project .venv. |
| Syntax and arguments | pinset venv create [--cwd <path>]. |
| Modifies state | Yes. May install Python and create .venv plus its ownership marker. |
| Example | pinset venv create --cwd ./app |
| JSON | No. |
| Exit | 0 when the environment is ready; 2 on Pinset failure. |
| Key errors | No project Python selection, lock mismatch, unsupported target, install failure, existing foreign .venv, or marker mismatch. |
/en/docs/commands/venv-createPinset 2.1