Ich bin neu bei Python Flask. Hier sind meine Terminalbefehle gemäß dem offiziellen Flask-Dokument.
Offizieller Flask-Link: https://flask.palletsprojects.com/en/st ... tallation/
WORK/2025/Python
[08:45]❯ cd FlaskIntro/
2025/Python/FlaskIntro
[08:45]❯ python3 -m venv .venv
2025/Python/FlaskIntro
[08:46]❯ . .venv/bin/activate
.venv/bin/activate (line 40): “case” builtin not inside of switch block
case "$(uname)" in
^~~^
from sourcing file .venv/bin/activate
.: Error while reading file '.venv/bin/activate'
2025/Python/FlaskIntro
[08:46]❯ python --version
Python 3.13.1
2025/Python/FlaskIntro
[08:46]❯ python3 --version
Python 3.13.1
2025/Python/FlaskIntro
[08:46]❯
LÖSUNG: ❯ . .venv/bin/activate.fish
Ich habe alle Dateien ausprobiert und festgestellt, dass ich Fish Shell verwende.
Im neuen Python Flask-Projekt kann die Umgebung gemäß dem offiziellen Dokument nicht aktiviert werden ⇐ Python
-
- Similar Topics
- Replies
- Views
- Last post