已成功安装 Python 3.1.2 但是当使用命令检查它是否安装在我的电脑上时,它无法识别命令集

Successfully Installed Python 3.1.2 but When Using the Command to check if its installed on my PC, it doesn't recognized the set of commands

我已经在我的 window 7(64 位)上安装了 Python 3.1.2。然而,当我使用这个命令检查它是否成功安装时:python --version我仍然得到一个错误为 "python" 无法识别..."。然后我使用命令 setx PATH "C:\Python 31",显示的错误消息无法识别 setx.."

我检查过 Python 31 显示在我的 C 盘下,我已经打开 PYTHON GUI window

请问我在哪里弄错了

我猜你的意思是你想尝试并使用它来查看它是否有效并从命令行识别。

确认您的 python bin 文件夹在您的系统路径中。您可以按照 msdn 中的 this guide 或任何其他指南将 python bin 文件夹添加到路径环境变量中。

您要添加的路径是 python.exe 所在的位置,可能在 C:\Python31\bin" 或类似位置。