Im neuen Python Flask-Projekt kann die Umgebung gemäß dem offiziellen Dokument nicht aktiviert werden

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Im neuen Python Flask-Projekt kann die Umgebung gemäß dem offiziellen Dokument nicht aktiviert werden

by Anonymous » 24 Dec 2024, 04:57

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.

Top