0Pricing
MCP Academy · Lekcja

Instalacja Python i uv

Utwórz czysty projekt Python za pomocą menedżera pakietów uv.

Instalacja Python i uv to bezpłatna lekcja MCP Academy na CoddyKit. To lekcja 1 z 4. Możesz przeczytać całą lekcję poniżej za darmo — a potem ćwiczyć ją interaktywnie w przeglądarce z wbudowanym edytorem kodu i tutorem AI dostępnym 24/7. To część ścieżki edukacyjnej MCP Academy, a Twój postęp synchronizuje się między webem a aplikacją CoddyKit. Kurs MCP Academy zawiera 4 lekcji w sumie.

Części tej lekcji nie zostały jeszcze przetłumaczone i są wyświetlane po angielsku.

A Clean Start

Before you build any MCP server, you need a tidy Python project. A clean start means fewer surprises and fewer broken installs later. Let's set the foundation. 🧱

Why a Version Matters

The MCP Python SDK needs a modern interpreter, so you want Python 3.10 or newer. Older versions miss the typing features the SDK relies on.

Meet uv

Instead of juggling pip and virtualenv, you'll use uv, a single fast tool that manages Python, packages, and environments for you in one place.

One Tool, Many Jobs

uv replaces pip, pip-tools, pyenv, and virtualenv at once. Learning one command set keeps your MCP workflow simple and consistent across every project. 🚀

Install uv

On macOS or Linux you can install uv with a single curl command. It drops a tiny binary on your path, ready to use immediately.

curl -LsSf https://astral.sh/uv/install.sh | sh

Confirm It Works

After installing, run a quick version check. If you see a version number, uv is on your path and ready to drive the rest of your setup.

uv --version

Let uv Manage Python

You don't even need Python installed first. With uv python install you can fetch any version uv manages, so your project is never tied to the system Python.

uv python install 3.12

Start a New Project

Spin up a fresh project folder with uv init. It scaffolds the files you need so you can start adding MCP code right away.

uv init mcp-server-demo

What uv init Creates

That command writes a pyproject.toml to declare your project and its dependencies. This file becomes the single source of truth for what your server needs.

The Hidden .venv

When you add a package, uv quietly creates a .venv folder, an isolated environment just for this project. Your global Python stays untouched and clean.

Run Without Activating

You never have to activate the venv by hand. uv run executes commands inside your project's environment automatically, so the right Python is always used.

uv run python --version

Quick Check

You're setting up a fresh MCP project from zero.

You Have a Workspace

You installed uv, let it manage Python, and scaffolded a clean project. With pyproject.toml and an isolated venv ready, you can now add the MCP SDK. ✅

Często zadawane pytania

Czy lekcja „Instalacja Python i uv” jest bezpłatna?

Tak — pełny tekst „Instalacja Python i uv” jest dostępny za darmo tutaj w sieci. Aby ćwiczyć ją interaktywnie (wbudowany edytor kodu i tutor AI dostępny 24/7) i odblokować resztę kursu MCP Academy, przejdź na CoddyKit PRO. Kurs MCP Academy zawiera 4 lekcji w sumie.

Co nauczysz się w „Instalacja Python i uv”?

Utwórz czysty projekt Python za pomocą menedżera pakietów uv. Ćwiczysz MCP Academy z praktycznym kodem, który uruchamiasz bezpośrednio w przeglądarce, a tutor AI dostępny 24/7 odpowiada na Twoje pytania podczas pracy nad lekcją.

Czy potrzebuję doświadczenia, aby zacząć MCP Academy?

Nie wymagamy żadnego doświadczenia. MCP Academy w CoddyKit jest strukturyzowany dla początkujących i zaawansowanych użytkowników, więc możesz zacząć tutaj lub od początku i uczyć się w swoim tempie. To lekcja 1 z 4.

Ile czasu zajmuje lekcja „Instalacja Python i uv”?

Większość lekcji CoddyKit trwa około 5–10 minut. Każda lekcja to mały, interaktywny krok, dzięki czemu robisz systematyczne postępy i zawsze wracasz dokładnie do tego samego miejsca — na webie i w aplikacji.

Czy mogę pisać i uruchamiać kod w tej lekcji MCP Academy?

Tak. Każda lekcja MCP Academy zawiera wbudowany edytor kodu, więc piszesz i uruchamiasz prawdziwy kod bezpośrednio w przeglądarce i od razu otrzymujesz sprzężenie zwrotne od AI — bez konfiguracji na komputerze.

Wszystkie lekcje w tym kursie

  1. Instalacja Python i uv
  2. Dodawanie Python SDK dla MCP
  3. Poznaj CLI mcp
  4. Układ projektu serwera
← Powrót do MCP Academy