Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Python Env

DSecurity

Python environment management with venv, Poetry, Pipenv, pyenv, and conda. Use when user asks to "create virtual environment", "set up Poetry", "manage Python versions", "fix pip issues", "install dependencies", "create requirements.txt", or any Python environment tasks.

207 stars
0 votes
0 copies
1 views
Added 9/4/2026
developmentpythonshellbashsqlfastapiflaskgitapi

Works with

api

Security Analysis

D55/100
criticalPipes output to a shell interpreter
mediumUses curl or wget to download content
criticalDownloads and executes remote scripts — classic supply chain attack
criticalDownloads and executes remote scripts — classic supply chain attack
mediumInstalls packages at runtime which could introduce malicious dependencies

Scanned 9/4/2026

Install to Claude Code

$npx -y skills add NeverSight/skills_feed --skill python-env --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python Env?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Python Env
[![Security: D — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-python-env/badge)](https://www.skillsdirectory.com/skills/neversight-python-env)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: python-env
description: Python environment management with venv, Poetry, Pipenv, pyenv, and conda. Use when user asks to "create virtual environment", "set up Poetry", "manage Python versions", "fix pip issues", "install dependencies", "create requirements.txt", or any Python environment tasks.
---

# Python Environment Management

Virtual environments, dependency management, and Python version control.

## venv (Built-in)

```bash
# Create virtual environment
python -m venv .venv
python3 -m venv .venv

# Activate
source .venv/bin/activate          # Linux/macOS
.venv\Scripts\activate             # Windows

# Deactivate
deactivate

# Install packages
pip install requests flask
pip install -r requirements.txt

# Freeze dependencies
pip freeze > requirements.txt

# Upgrade pip
pip install --upgrade pip
```

### requirements.txt

```
# Pinned versions (production)
flask==3.0.0
requests==2.31.0
sqlalchemy==2.0.23

# Ranges (library development)
flask>=3.0,<4.0
requests~=2.31            # Compatible release (>=2.31, <3.0)

# With extras
fastapi[all]==0.104.0

# From git
git+https://github.com/user/repo.git@main#egg=package
```

```bash
# Separate dev dependencies
pip install -r requirements.txt
pip install -r requirements-dev.txt
```

## Poetry

```bash
# Install Poetry
curl -sSL https://install.python-poetry.org | python3 -

# Create new project
poetry new my-project
poetry init  # In existing project

# Add dependencies
poetry add requests flask
poetry add pytest --group dev
poetry add "sqlalchemy>=2.0,<3.0"

# Remove dependency
poetry remove requests

# Install all dependencies
poetry install
poetry install --without dev

# Update dependencies
poetry update
poetry update requests      # Single package

# Show dependencies
poetry show
poetry show --tree

# Run command in virtualenv
poetry run python main.py
poetry run pytest

# Activate shell
poetry shell

# Build & publish
poetry build
poetry publish

# Export to requirements.txt
poetry export -f requirements.txt --output requirements.txt
poetry export -f requirements.txt --without-hashes
```

### pyproject.toml (Poetry)

```toml
[tool.poetry]
name = "my-project"
version = "1.0.0"
description = "My project"
authors = ["Name <email@example.com>"]
python = "^3.11"

[tool.poetry.dependencies]
python = "^3.11"
flask = "^3.0"
sqlalchemy = "^2.0"

[tool.poetry.group.dev.dependencies]
pytest = "^8.0"
ruff = "^0.1"
mypy = "^1.7"

[tool.poetry.scripts]
serve = "my_project.main:app"
```

## uv (Fast Python Package Manager)

```bash
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Create virtual environment
uv venv

# Install packages (10-100x faster than pip)
uv pip install requests flask
uv pip install -r requirements.txt

# Sync from lock file
uv pip sync requirements.txt

# Compile requirements (resolve + lock)
uv pip compile requirements.in -o requirements.txt

# Create project
uv init my-project

# Add dependency
uv add requests
uv add pytest --dev

# Run
uv run python main.py
```

## pyenv (Python Version Management)

```bash
# Install pyenv
curl https://pyenv.run | bash

# List available versions
pyenv install --list | grep "3\."

# Install Python version
pyenv install 3.12.1
pyenv install 3.11.7

# Set global default
pyenv global 3.12.1

# Set local version (per directory)
pyenv local 3.11.7    # Creates .python-version

# List installed
pyenv versions

# Uninstall
pyenv uninstall 3.10.0
```

## Pipenv

```bash
# Install
pip install pipenv

# Create environment + install
pipenv install
pipenv install requests
pipenv install pytest --dev

# Run in environment
pipenv run python main.py
pipenv shell

# Lock dependencies
pipenv lock

# Install from lock file
pipenv install --deploy

# Show dependency graph
pipenv graph
```

## conda

```bash
# Create environment
conda create -n myenv python=3.12
conda create -n myenv python=3.12 numpy pandas

# Activate/deactivate
conda activate myenv
conda deactivate

# Install packages
conda install numpy pandas
conda install -c conda-forge package-name

# List environments
conda env list

# Export environment
conda env export > environment.yml

# Create from file
conda env create -f environment.yml

# Remove environment
conda env remove -n myenv
```

## Common Issues

```bash
# "pip not found" after creating venv
python -m pip install --upgrade pip

# Permission errors
pip install --user package-name

# Conflicting versions
pip install --force-reinstall package==1.0

# Clear pip cache
pip cache purge

# Check what's outdated
pip list --outdated

# Verify installation
python -c "import package; print(package.__version__)"
```

## Reference

For comparison and migration guides: `references/tools.md`

Attribution

NeverSightNeverSight
View sourceMore from NeverSight →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

281612 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2132 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →