Automation & Ops python-environmentaws-sagemakerboto3awsclivirtualenvpython-version-management

SageMaker Python Environment Setup

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

FollowSkills review · FSRS-2.0
Not recommended
49/ 100 5-point scale 2.5 / 5
Trust16 / 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.

Reliability8 / 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.

Adaptability9 / 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.

Convention7 / 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.

Effectiveness6 / 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.

Verifiability3 / 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.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 86cdeee824b7
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.
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.
Review evidence [1][2][3][4][5][6][7]
See the full review method →

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.

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

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 do you install this skill?

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.

How do you use this skill?

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.

How does this skill compare with similar options?

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.

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.

Automation & Ops

SageMaker Production Defaults

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

Automation & Ops

AWS Context Discovery

Resolve the active AWS environment before any account operation.

Automation & Ops

SageMaker Deployment Planner

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

Dev & Engineering

Hugging Face ZeroGPU Builder

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

Automation & Ops

SageMaker Serving Image Selector

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

Dev & Engineering

Hugging Face Hub CLI Skill

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

Dev & Engineering

Gradio Interactive App Builder

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

Dev & Engineering

LoRA Space Demo Builder

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

Dev & Engineering

Hugging Face Spaces Builder

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

Data & Analysis

Hugging Face Dataset Explorer

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

Dev & Engineering

Hugging Face Paper Research Assistant

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

Data & Analysis

Hugging Face LLM Trainer

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

Data & Analysis

TRL Language Model Trainer

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

Data & Analysis

Hugging Face Local Evaluator

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

Data & Analysis

Sentence Transformers Training Assistant

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

Data & Analysis

Transformers.js Inference Skill

Run Hugging Face models directly inside JavaScript applications.

Data & Analysis

Hugging Face Model Memory Estimator

Estimate inference memory without downloading model weights.

Dev & Engineering

Hugging Face Local Model Runner

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

Data & Analysis

Trackio Experiment Tracking

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

Related skills