> ## Documentation Index
> Fetch the complete documentation index at: https://docs.askui.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AskUI-NewPythonEnvironment

### SYNOPSIS

Creates a new Python virtual environment.

### DESCRIPTION

The AskUI-NewPythonEnvironment cmdlet creates a new Python virtual environment with the specified name. Optionally, it can activate the environment after creation.

### PARAMETERS

* `-Name` | *\<String>* - The name of the new virtual environment.
* `-Activate` | *\<SwitchParameter>* - If specified, activates the environment in the current shell after creation.

### EXAMPLES

#### EXAMPLE 1

Creates and activates a new Python environment named "myenv".

```powershell theme={null}
AskUI-NewPythonEnvironment -Name "myenv" -Activate
```
