首页 > 解决方案 > 我似乎无法从终端访问某些功能

问题描述

首先,我不是技术天才,所以如果我说的是愚蠢的话,一定要让我知道。我遇到的问题是,当我尝试为 Python 或 GoLang 运行特定命令时,我必须首先选择其特定目录:

Microsoft Windows [Version 10.0.19043.1110]
(c) Microsoft Corporation. All rights reserved.

C:\Users\(Redacted)>python --version
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

C:\Users\(Redacted)>cd C:\Users\Uday_Randhawa\AppData\Local\Programs\Python\Python39

C:\Users\(Redacted)\AppData\Local\Programs\Python\Python39>python --version
Python 3.9.0

我不知道是什么原因造成的,但希望得到任何帮助,甚至在哪里发布。提前致谢。

标签: pythonwindowsterminaldirectory

解决方案


推荐阅读