Skip to main content

setup-python-env

Set up a Python virtual environment and install Reflex. Use when initializing a new Reflex project, setting up a development environment, or when the user needs to create a venv and install dependencies. Load when there is no .venv directory, when the user asks to start a new Reflex app, or when imports fail due to missing packages.

Ir a la instalación

Datos de origen

Repositorio
reflex-dev/xy
Última actividad en el origen
20 de julio de 2026 a las 17:48
Idioma detectado de SKILL.md
inglés
Estrellas
1843
Forks
74

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
setup-python-env
description
Set up a Python virtual environment and install Reflex. Use when initializing a new Reflex project, setting up a development environment, or when the user needs to create a venv and install dependencies. Load when there is no .venv directory, when the user asks to start a new Reflex app, or when imports fail due to missing packages.
# Python Environment Setup for Reflex This skill handles creating a Python virtual environment and installing Reflex. ## Step 1: Check for an existing virtual environment Look for a `.venv` directory in the project root: ```bash ls -d .venv 2>/dev/null ``` If `.venv` exists, activate it and skip to **Step 3**. ```bash source .venv/bin/activate ``` ## Step 2: Create the virtual environment If no `.venv` exists, determine which tools are available. ### Option A: `uv` is available Check if `uv` is installed: ```bash uv --version ``` If `uv` is found: 1. If no `pyproject.toml` exists, initialize one: ```bash uv init --bare ``` 2. Create the virtual environment: ```bash uv venv .venv ``` 3. Activate it: ```bash source .venv/bin/activate ``` Skip to **Step 3**. ### Option B: Fall back to `python` / `pip` If `uv` is not available, check the Python version: ```bash python3 --version ``` If the version is **older than 3.10**, stop and inform the user: > Python 3.10 or newer is required. Please install a more up-to-date version of Python before continuing. If the version is **3.10 or newer**: 1. Create the virtual environment: ```bash python3 -m venv .venv ``` 2. Activate it: ```bash source .venv/bin/activate ``` 3. Upgrade pip: ```bash pip install --upgrade pip ``` ## Step 3: Install Reflex Check if Reflex is already installed: ```bash pip show reflex 2>/dev/null ``` If Reflex is **not** installed: ### If using `uv`: ```bash uv add reflex ``` ### If using `pip`: ```bash pip install reflex ```
Ver en GitHub