Automation & Ops

SageMaker Python Environment Setup

Build an isolated, version-aligned Python environment for SageMaker and AWS automation.

49/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 11k
Last updated
19d ago
License
Apache-2.0
python-environmentaws-sagemakerboto3awscli
+2virtualenvpython-version-management

What does this skill do, and when should you use it?

This skill prepares isolated Python environments for SageMaker deployments, training jobs, and AWS automation. It recommends Python 3.10, 3.11, or 3.12 and installs current boto3 and awscli releases. It provides commands for environment creation, version verification, and troubleshooting common interpreter and dependency failures. It also explains when direct boto3 usage differs from using the SageMaker Python SDK.

Runs the bundled setup_env.py script, detects uv or falls back to the standard-library venv module, creates .venv, and installs requirements.txt. It supports custom environment directories and Python versions, then directs the agent to invoke the environment's interpreter explicitly. The check_versions.py helper reports boto3, botocore, awscli, or arbitrary package versions using importlib.metadata.version(). The guidance also addresses Python-version incompatibilities, mixed interpreters, PowerShell quoting, stale boto3 APIs, SDK credential issues, and generative reranker container selection.

Good fit
  • A developer preparing an isolated environment before deploying a model to SageMaker.
  • An ML engineer starting a SageMaker training job that needs a compatible Python and boto3 setup.
  • An AWS automation author about to run pip install or invoke boto3.
  • A user diagnosing dependency resolution failures, missing modules, or boto3 unknown-parameter errors.
  • A team using the SageMaker Python SDK that needs to understand how it relates to the bundled boto3 scripts.

How do you install this skill?

Before you use it
  • requirements.txt is not included in the supplied source, so its actual dependencies, version ranges, and security posture cannot be verified statically.
  • The scripts install the latest boto3/awscli, which can cause non-reproducible builds or compatibility drift; reviewed lockfiles are advisable for production.
  • Dependency installation and AWS workflows depend on external networks and cloud services; no mainland-China reachability, mirror, or offline procedure is documented.
  • The skill can create or recreate .venv without specifying user confirmation, backup, or rollback procedures.
Before you start
Your agent needs
  • Shell / CLI
  • Network access
  • Local filesystem
Install first
  • Python 3.10, 3.11, or 3.12
  • boto3
  • awscli
  • uv or Python venv

For Codex or another Agent Skills-compatible client, copy or symlink skills/hf-cloud-python-env-setup/ into the project's .agents/skills directory or another standard .agents/skills location. The README documents collection-level installation and does not provide a separate install command for this individual skill.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/huggingface/skills.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/skills/hf-cloud-python-env-setup" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • Set up an isolated Python environment for my SageMaker deployment and verify boto3, botocore, and awscli.

Ask the coding agent something like: “Set up an isolated Python environment for my SageMaker deployment and verify boto3, botocore, and awscli.” Run python3 scripts/setup_env.py on macOS/Linux, or python scripts/setup_env.py on Windows. Invoke scripts explicitly with .venv/bin/python deploy.py, or .venv\Scripts\python.exe deploy.py on Windows. Verify versions with .venv/bin/python scripts/check_versions.py; additional package names may be supplied.

What are this skill's strengths and limitations?

Pros
  • Strong guardrails against system-Python contamination and dependency conflicts.
  • Supports uv and standard-library venv with macOS, Linux, and Windows command forms.
  • Promotes current boto3 APIs and reliable package-version inspection.
  • Covers concrete SageMaker SDK, generative-reranker, and SSO assumed-role caveats.
Limitations
  • Focused on SageMaker and AWS Python workflows rather than general Python project management.
  • The default latest-package policy may not suit projects that require reproducible version pins.
  • The source provides no test-suite information or independent platform test results.
  • Environment creation and package installation require shell, filesystem, and network access.

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
SageMaker Python Environment Setup this page 49 · Use with care ★ 11k 19d ago Apache-2.0
SageMaker IAM Preflight 41 · Not recommended ★ 11k 19d ago Apache-2.0
SageMaker Production Defaults 46 · Use with care ★ 11k 19d ago Apache-2.0
Creator Registry 61 · Recommended ★ 3k 13d ago Apache-2.0
Dependency Refresh Playbook 59 · Recommended ★ 4.5k 23d ago MIT

Compared with manual venv creation, setup_env.py detects uv, enforces supported Python versions, installs dependencies, and is idempotent. Manual uv venv or python3.12 -m venv remains documented. The SageMaker Python SDK v3 is the named alternative to direct boto3 usage, although the bundled scripts themselves require boto3.

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
49/ 100 5-point scale 2.5 / 5
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
1Trust16 / 25 · 3.2/5

The evidence shows isolated-environment requirements, a prohibition on modifying system Python, and use of stdlib venv or uv. No obvious malware or credential-theft logic is present. Points are deducted because dependencies are unpinned and installed from external package sources, user confirmation is not required, network and supply-chain risks are not disclosed, and data-flow, permission boundaries, and rollback are unspecified.

2Reliability8 / 20 · 2.0/5

SKILL.md, setup_env.py, and check_versions.py are broadly consistent about version checks, cross-platform interpreter paths, environment reuse, and installation failure reporting. Points are deducted because execution was not performed, requirements.txt is absent from the supplied material, no key-path tests are shown, and diagnostics for uv, Python availability, or package-source failures are limited. Static calibration caps this at 10.

3Adaptability9 / 15 · 3.0/5

The audience, SageMaker/AWS scenarios, Python 3.10–3.12 range, and Windows/macOS/Linux usage are reasonably clear. Points are deducted because non-SageMaker boundaries, exclusion conditions, and input/output contracts are under-specified; documentation is English-only; and PyPI/uv and AWS ecosystem reachability in mainland China is not evidenced.

4Convention7 / 15 · 2.3/5

The skill has frontmatter, layered guidance, usage examples, verification commands, troubleshooting, and an Apache-2.0 license; the README documents repository-level installation and generation. Points are deducted because the skill lacks its own version, changelog, named maintenance responsibility, or explicit update path; requirements.txt is not supplied; and dependency and limitation disclosures are incomplete.

5Effectiveness6 / 15 · 2.0/5

The skill supplies scripts to create an environment, install boto3/awscli, and inspect versions, which plausibly covers the core setup task and makes explicit interpreter invocation useful. Points are deducted because the missing dependency file prevents completeness verification, latest-unpinned installs can drift, no representative execution output is provided, and comparative benefit over manual setup is not demonstrated. Static calibration caps this at 7.

6Verifiability3 / 10 · 1.5/5

The supplied source includes auditable Python implementations, concrete commands, and failure messages, while the README and CI show repository-level generated-artifact validation. Points are deducted because no committed tests or real execution evidence cover this skill's key paths, the CI shown does not test setup_env.py/check_versions.py behavior, and this review did not execute anything. Static calibration caps this at 5.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 20, 2026 Reviewed revision 86cdeee824b7 Review evidence[1][2][3][4][5][6][7]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Does this modify system Python?
No. The skill explicitly requires an isolated environment and directs installation and execution through its .venv interpreter.
Do I need the SageMaker Python SDK?
No. The bundled scripts use boto3. Projects that prefer the SDK can install sagemaker inside the isolated environment.
Why avoid Python 3.13 and newer?
The skill warns that ML libraries may not yet provide compatible wheels, causing confusing dependency-resolution failures.
Does it handle the entire AWS deployment?
No. Its scope is Python version selection, dependency isolation, SDK freshness, verification, and related environment pitfalls.

More skills from this repository

All from huggingface/skills

Automation & Ops

SageMaker IAM Preflight

Find and validate a usable SageMaker execution role before deployment or training.

★ 11k FS 41 Not recommended 19d ago
Automation & Ops

SageMaker Production Defaults

Deploy SageMaker real-time or async endpoints with autoscaling, CloudWatch alarms, and consistent tagging built in.

★ 11k FS 46 Use with care 19d ago
Automation & Ops

AWS Context Discovery

Resolve the active AWS environment before any account operation.

★ 11k FS 50 Use with care 19d ago
Automation & Ops

SageMaker Deployment Planner

Choose a practical Amazon SageMaker deployment path for your model, traffic pattern, and latency needs.

★ 11k FS 50 Use with care 19d ago
Dev & Engineering

Hugging Face ZeroGPU Builder

Build dependable Gradio AI demos and GPU workloads on Hugging Face ZeroGPU.

★ 11k FS 56 Use with care 19d ago
Automation & Ops

SageMaker Serving Image Selector

Choose a compatible SageMaker serving container and retrieve the current regional image URI for a Hugging Face model.

★ 11k FS 47 Use with care 19d ago
Dev & Engineering

Hugging Face Hub CLI Skill

Give agents command-line control over Hugging Face Hub models, datasets, Spaces, jobs, and infrastructure.

★ 11k FS 42 Not recommended 19d ago
Dev & Engineering

Gradio Interactive App Builder

Build Gradio web interfaces, machine-learning demos, and chat apps in Python.

★ 11k FS 40 Not recommended 19d ago
Dev & Engineering

LoRA Space Demo Builder

Build and publish a tailored Gradio Space for a Hugging Face LoRA.

★ 11k FS 51 Use with care 19d ago
Dev & Engineering

Hugging Face Spaces Builder

Build, deploy, debug, and maintain machine-learning apps on Hugging Face Spaces.

★ 11k FS 50 Use with care 19d ago
Data & Analysis

Hugging Face Dataset Explorer

Explore, query, and extract Hugging Face datasets through the Dataset Viewer API.

★ 11k FS 49 Use with care 19d ago
Dev & Engineering

Hugging Face Paper Research Assistant

Read AI papers and retrieve structured metadata from Hugging Face paper pages.

★ 11k FS 49 Use with care 19d ago
Data & Analysis

Hugging Face LLM Trainer

Train, fine-tune, and preserve models on Hugging Face cloud GPUs.

★ 11k FS 48 Use with care 19d ago
Data & Analysis

TRL Language Model Trainer

Train and fine-tune transformer language models with TRL’s CLI for SFT, preference alignment, and reinforcement learning.

★ 11k FS 48 Use with care 19d ago
Data & Analysis

Hugging Face Local Evaluator

Run controlled inspect-ai or lighteval evaluations for Hugging Face Hub models on local hardware.

★ 11k FS 47 Use with care 19d ago
Data & Analysis

Sentence Transformers Training Assistant

Train retrieval, similarity, reranking, and sparse-search models with Sentence Transformers.

★ 11k FS 47 Use with care 19d ago
Data & Analysis

Transformers.js Inference Skill

Run Hugging Face models directly inside JavaScript applications.

★ 11k FS 46 Use with care 19d ago
Data & Analysis

Hugging Face Model Memory Estimator

Estimate inference memory without downloading model weights.

★ 11k FS 44 Not recommended 19d ago
Dev & Engineering

Hugging Face Local Model Runner

Choose compatible GGUF quantizations from Hugging Face and run them locally with llama.cpp.

★ 11k FS 44 Not recommended 19d ago
Data & Analysis

Trackio Experiment Tracking

Log, monitor, and query machine-learning experiments with dashboards, diagnostic alerts, and automation-ready output.

★ 11k FS 43 Not recommended 19d ago

Related skills