Escribe para buscar…

Project

Esta página todavía no se ha traducido — se muestra en su idioma original:English

Introducció

uv supports managing Python projects, which define their dependencies in a pyproject.toml file.

Creating a new project

You can create a new Python project using the uv init command:

shell
uv init hello
cd hello

Alternatively, you can initialize a project in the working directory:

shell
mkdir hello
cd hello
uv init

uv will create the following files:

shell
├── .gitignore
├── .python-version
├── README.md
├── main.py
└── pyproject.toml

The main.py file contains a simple “Hello world” program. Try it out with uv run:

shell
uv run main.py

Estás leyendo una vista previa.

Inicia sesión con Google para leer la página completa. Una cuenta de Google incluye 5 páginas gratuitas en total; el alumnado y el profesorado leen las páginas de su curso sin límite.

Iniciar sesión