pinset2.1
中文
Python environment commands

pinset venv create

Install the selected CPython runtime if needed, then create or validate the project .venv.

View source on GitHub
FieldDescription
PurposeInstall the selected CPython runtime if needed, then create or validate the project .venv.
Syntax and argumentspinset venv create [--cwd <path>].
Modifies stateYes. May install Python and create .venv plus its ownership marker.
Examplepinset venv create --cwd ./app
JSONNo.
Exit0 when the environment is ready; 2 on Pinset failure.
Key errorsNo project Python selection, lock mismatch, unsupported target, install failure, existing foreign .venv, or marker mismatch.
/en/docs/commands/venv-createPinset 2.1