Translation(model translation, not the source's own text)
Python 3.15 现已作为 Vercel Managed Image 提供给 Vercel Sandbox 使用。
要运行使用 Python 3.15 的 sandbox,可在任一 SDK 中通过 image 选项选择 vercel/sandbox/python:3.15,或在 CLI 中使用 --image 标志。
import { Sandbox } from '@vercel/sandbox';
const sandbox = await Sandbox.create({ image: 'vercel/sandbox/python:3.15' });const version = await sandbox.runCommand('python', ['--version']);console.log(`Python version: ${await version.stdout()}`);
创建一个使用 Python 3.15 的 sandbox 并打印其版本。
默认通用镜像(vercel/sandbox/universal:latest)仍附带 Python 3.14,并计划于 December 16, 2026 切换至 Python 3.15。
更多信息请参阅 Vercel Sandbox images 文档。