- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Python venv einrichten (Windows & macOS) - Virtuelle Umgebung, pip, requirements.txt
In diesem Video richten wir eine virtuelle Python-Umgebung (venv) für Windows und macOS ein. Ziel ist ein isoliertes, reproduzierbares Setup, in dem wir Pakete (z.B. Sphinx) sauber installieren können, ohne globale Python-Installationen zu "vermischen". Am Ende erstellen wir eine requirements.txt, mit der sich die Umgebung jederzeit identisch wiederherstellen lässt.
Befehle aus dem Video
1) venv erstellen
Windows:
python -m venv .venv
macOS:
python3 -m venv .venv
2) venv aktivieren
Windows (PowerShell):
.venv\Scripts\Activate.ps1
falls Execution Policy blockiert:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
danach Aktivierung erneut ausführen:
.venv\Scripts\Activate.ps1
macOS:
source .venv/bin/activate
3) pip aktualisieren
python -m pip install -U pip
4) Paket installieren (Beispiel: Sphinx)
python -m pip install sphinx
5) Installation prüfen
sphinx-build --version
6) requirements.txt erzeugen
python -m pip freeze requirements.txt (größer Zeichen ergänzen)
7) Umgebung aus requirements.txt wiederherstellen
python -m pip install -r requirements.txt
8) venv deaktivieren
deactivate
Видео Python venv einrichten (Windows & macOS) - Virtuelle Umgebung, pip, requirements.txt канала Simple Science
Befehle aus dem Video
1) venv erstellen
Windows:
python -m venv .venv
macOS:
python3 -m venv .venv
2) venv aktivieren
Windows (PowerShell):
.venv\Scripts\Activate.ps1
falls Execution Policy blockiert:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
danach Aktivierung erneut ausführen:
.venv\Scripts\Activate.ps1
macOS:
source .venv/bin/activate
3) pip aktualisieren
python -m pip install -U pip
4) Paket installieren (Beispiel: Sphinx)
python -m pip install sphinx
5) Installation prüfen
sphinx-build --version
6) requirements.txt erzeugen
python -m pip freeze requirements.txt (größer Zeichen ergänzen)
7) Umgebung aus requirements.txt wiederherstellen
python -m pip install -r requirements.txt
8) venv deaktivieren
deactivate
Видео Python venv einrichten (Windows & macOS) - Virtuelle Umgebung, pip, requirements.txt канала Simple Science
python venv virtual environment virtuelle umgebung python venv windows python venv mac python windows python macos powershell executionpolicy pip pip update pip install requirements.txt pip freeze reproducible environment dependency management python packages pypi sphinx sphinx documentation sphinx tutorial dokumentation technische dokumentation wissenschaftliche dokumentation html export pdf export simplescience python deutsch sphinx deutsch
Комментарии отсутствуют
Информация о видео
1 марта 2026 г. 0:00:49
00:06:11
Другие видео канала



