Seite 1 von 1

PIP stellt sich tot

Verfasst: Donnerstag 22. Juli 2021, 17:14
von caargoo
1. frisches Win10
2. Python 3.9.6 installiert und dem PATH hinzugefügt
3. Im Python/Scripts Ordner gibt es pip.exe , pip3.9.exe und pip3.exe

Wenn ich jetzt mit pip install --upgrade pip oder mit python -m pip install --upgrade pip
probiere kommt jedesmal Syntax Error.

Hab schon mehrere Python Installationen hinter mir, aber pip hat jedesmal von Anfang an funktioniert.
Kennt jemand das Problem und hat Abhilfe?

Re: PIP stellt sich tot

Verfasst: Donnerstag 22. Juli 2021, 17:22
von rogerb
@caargoo,

Syntax Error? Merkwürdig. Kannst du mal die gesamte Fehlermeldung posten?
Hast du mehrere Python Installationen?

Re: PIP stellt sich tot

Verfasst: Donnerstag 22. Juli 2021, 17:40
von caargoo
>>> pip install --upgrade pip
File "<stdin>", line 1
pip install --upgrade pip
^
SyntaxError: invalid syntax
>>> python -m pip install --upgrade pip
File "<stdin>", line 1
python -m pip install --upgrade pip
^
SyntaxError: invalid syntax
Nur eine Python Installation

Re: PIP stellt sich tot

Verfasst: Donnerstag 22. Juli 2021, 17:43
von __deets__
pip ruft man in der Kommandozeile auf. Nicht im Python Interpreter.

Re: PIP stellt sich tot

Verfasst: Donnerstag 22. Juli 2021, 17:46
von caargoo
Ich Trottel.
Danke.