> ## 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-EnablePythonEnvironment

### SYNOPSIS

Activates a Python virtual environment.

### DESCRIPTION

The AskUI-EnablePythonEnvironment cmdlet activates a specified Python virtual environment. Optionally, it can create the environment if it does not exist.

### PARAMETERS

* `-Name` | *\<String>* - The name of the environment to activate.
* `-CreateIfNotExists` | *\<SwitchParameter>* - If specified, creates the environment if it does not exist before activating it.

### EXAMPLES

#### EXAMPLE 1

Activates the "myenv" virtual environment, creating it if necessary.

```powershell theme={null}
AskUI-EnablePythonEnvironment -Name "myenv" -CreateIfNotExists
```
