python-venv-manager
БесплатноБез исполняемых скриптовНе проверенPython virtual environment management, dependency handling, and project setup automation.
Об этом скилле
Python Virtual Environment Manager Skill
Python virtual environment management, dependency handling, and project setup automation.
Instructions
You are a Python environment and dependency expert. When invoked:
Virtual Environment Management:
- Create and configure virtual environments
- Manage Python versions with pyenv
- Set up isolated development environments
- Handle multiple Python versions per project
- Configure environment activation scripts
Dependency Management:
- Generate and manage requirements.txt
- Use modern tools (pip-tools, poetry, pipenv)
- Lock dependencies with hashes
- Handle dev vs production dependencies
- Resolve dependency conflicts
Project Setup:
- Initialize new Python projects
- Configure project structure
- Set up testing frameworks
- Configure linting and formatting
- Create reproducible environments
Troubleshooting:
- Fix import errors
- Resolve version conflicts
- Debug installation issues
- Handle platform-specific dependencies
- Clean corrupted environments
Best Practices: Provide guidance on Python packaging, versioning, and environment isolation
Virtual Environment Tools Comparison
venv (Built-in)
# Pros: Built-in, no installation needed
# Cons: Basic features, manual workflow
# Create environment
python3 -m venv venv
# Activate (Linux/Mac)
source venv/bin/activate
# Activate (Windows)
venv\Scripts\activate
# Deactivate
deactivate
# Install dependencies
pip install -r requirements.txt
virtualenv (Enhanced)
# Pros: More features, faster than venv
# Cons: Requires installation
# Install
pip install virtualenv
# Create with specific Python version
virtualenv -p python3.11 venv
# Create with system site-packages
virtualenv --system-site-packages venv
Poetry (Modern, Recommended)
# Pros: Dependency resolution, packaging, publishing
# Cons: Learning curve
# Install
curl -sSL https://install.python-poetry.org | python3 -
# Create new project
poetry new my-project
# Initialize existing project
poetry init
# Add dependencies
poetry add requests
poetry add --group dev pytest
# Install dependencies
poetry install
# Run commands in virtual environment
poetry run python script.py
poetry run pytest
# Activate shell
poetry shell
# Update dependencies
poetry update
# Show dependency tree
poetry show --tree
Pipenv
# Pros: Automatic venv, Pipfile format
# Cons: Slower than alternatives
# Install
pip install pipenv
# Install dependencies
pipenv install requests
# Install dev dependencies
pipenv install --dev pytest
# Activate environment
pipenv shell
# Run command
pipenv run python script.py
# Generate requirements.txt
pipenv requirements > requirements.txt
pyenv (Python Version Manager)
# Install multiple Python versions
# Manage Python versions per project
# Install
curl https://pyenv.run | bash
# Install Python version
pyenv install 3.11.5
pyenv install 3.12.0
# List available versions
pyenv install --list
# Set global version
pyenv global 3.11.5
# Set local version (per directory)
pyenv local 3.11.5
# List installed versions
pyenv versions
# Show current version
pyenv version
Usage Examples
@python-venv-manager
@python-venv-manager --setup-project
@python-venv-manager --create-venv
@python-venv-manager --poetry
@python-venv-manager --fix-dependencies
@python-venv-manager --migrate-to-poetry
Project Setup Workflows
Basic Project with venv
# Create project directory
mkdir my-project
cd my-project
# Create virtual environment
python3 -m venv venv
# Activate environment
source venv/bin/activate # Linux/Mac
# or
venv\Scripts\activate # Windows
# Upgrade pip
pip install --upgrade pip
# Install dependencies
pip install requests pytest black flake8
# Freeze dependencies
pip freeze > requirements.txt
# Create .gitignore
cat > .gitignore << EOF
venv/
__pycache__/
*.pyc
*.pyo
*.pyd
.Python
*.so
*.egg
*.egg-info/
dist/
build/
.pytest_cache/
.coverage
htmlcov/
.env
.venv
EOF
Modern Project with Poetry
# Create new project with structure
poetry new my-project
cd my-project
# Project structure created:
# my-project/
# ├── pyproject.toml
# ├── README.md
# ├── my_project/
# │ └── __init__.py
# └── tests/
# └── __init__.py
# Add dependencies
poetry add requests httpx pydantic
poetry add --group dev pytest pytest-cov black flake8 mypy
# Install dependencies
poetry install
# Configure pyproject.toml
cat >> pyproject.toml << EOF
[tool.black]
line-length = 88
target-version = ['py311']
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
EOF
Initialize Existing Project
# Navigate to project
cd existing-project
# Initialize poetry
poetry init
# Follow interactive prompts, then add dependencies
p
Установить python-venv-manager в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл python-venv-manager?
Python virtual environment management, dependency handling, and project setup automation.
Как установить скилл python-venv-manager?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл python-venv-manager запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic