2017-08-21 4 views
-2

Ich versuche Pylint zu installieren, da ich VS Code verwenden, aber ich erhalte immer diesen Fehlercode:Python wird nicht erkannt

PS C:\Users\Alex> python -m pip install pylint 
python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the 
spelling of the name, or if a path was included, verify that the path is correct and try again. 
At line:1 char:1 
+ python -m pip install pylint 
+ ~~~~~~ 
+ CategoryInfo   : ObjectNotFound: (python:String) [], CommandNotFoundException 
+ FullyQualifiedErrorId : CommandNotFoundException 

Ich bin mit Windows 10 64-Bit.

EDIT:

Ich versuchte 'py' anstelle von 'Python' verwendet und es funktionierte.

PS C: \ Benutzer \ Alex> py -m pip Pylint

+2

Ist Python in Ihrem 'PATH'? – CoryKramer

+0

Ja, es ist da. – Takenobou

Antwort

0

Sol 1) in der Systemumgebungsvariable PATH installieren -> C: \ Python27; C: \ Python27 \ Tools \ Scripts;

Sol 2) Führen Sie die Befehlszeile als Administrator

+0

Ich benutze Python 3.5, sollte ich es als (C: \ Python35; C: \ Python35 \ Tools \ Skripte;) präsentieren? – Takenobou

+0

Ich benutze Python 3.6 in meinem anderen System. Pfad -> C: \ Programme \ Python36 \ Scripts \; C: \ Programme \ Python36 \; So. Ich werde sagen, kopieren Sie den Pfad wo genau Ihre Python 3.5 installiert. –

+0

Danke, ich habe die Version 3.6 heruntergeladen und festgestellt, dass es einen zusätzlichen Pfad im Installer gibt und es funktioniert. – Takenobou