【发布时间】:2018-08-29 15:40:12
【问题描述】:
我关注了这个视频:https://www.youtube.com/watch?v=Y2q_b4ugPWk 并让我的 cmd 将 python 识别为路径变量。但这仅在我以管理员身份打开 cmd 和 powershell 时才有效。如何让它适用于所有用户?
作为管理员:
PS C:\windows\system32> python
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
作为用户:
PS C:\Users> 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
PS C:\Users>
【问题讨论】:
标签: python powershell cmd path