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 imp
By reflex-dev · 386 installs
npx skills add reflex-dev/agent-skills --skill setup-python-env
Source repository · Upstream listing
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:
If .venv exists, activate it and skip to Step 3 .
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:
If uv is found:
1. If no pyproject.toml exists, initialize one:
2. Create the virtual environment:
3. Activate it:
Skip to Step 3 .
Option B: Fall back to python / pip
If uv is not available, check the Python 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:
2. Activate it:
3. Upgrade pip:
Step 3: Install Reflex
Check if Reflex is already installed:
If Reflex is not installed:
If using uv :
If using pip :