Windows10 PowerShell下的Python:
Notepad++6.9.2/Windows powershell/Python3.5.2(Print参数发生变化,后更改为Python2.7.12
------------------Error Logs------------------------------------------------------------------------------
PS C:\WINDOWS\system32> python
python : 无法将“python”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。
请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ python
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
------------------------------------------------------------------------------------------------------------
PS C:\Users\TANYI>[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Program Files\Python35", "User")
Reboot PowerShell OR Restart Windows
Notepad++6.9.2/Windows powershell/Python3.5.2(Print参数发生变化,后更改为Python2.7.12
------------------Error Logs------------------------------------------------------------------------------
PS C:\WINDOWS\system32> python
python : 无法将“python”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。
请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ python
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
------------------------------------------------------------------------------------------------------------
PS C:\Users\TANYI>[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Program Files\Python35", "User")
Reboot PowerShell OR Restart Windows