Код: Выделить всё
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Users\lenovo> python
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
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Код: Выделить всё
[Environment]::SetEnvironmentVariable("Path", "$enc:Path;C:\Users\lenovo\AppData\Local\Programs\Python\Python36")
Я должен вводить приведенный выше код каждый раз, когда хочу запустить Python в новом окне PowerShell. Это немного раздражает. Любая помощь будет оценена по достоинству. Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/478 ... powershell