在WIndows 10 64位上安装Python

在WIndows 10 64位上安装Python,python,Python,我正在尝试在我的64位Windows10机器上安装python。我下载了最新的Python2版本(遵循Zed Shaw的书,因此没有安装Python3)。安装完成后,我在powershell中输入了python。然而,我得到了以下错误 PS C:\> python python : Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)] on win32 At line:1 char:1 + py

我正在尝试在我的64位Windows10机器上安装python。我下载了最新的Python2版本(遵循Zed Shaw的书,因此没有安装Python3)。安装完成后,我在powershell中输入了python。然而,我得到了以下错误

PS C:\> python
python : Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)] on win32
At line:1 char:1
+ python
+ ~~~~~~
+ CategoryInfo          : NotSpecified: (Python 2.7.10 (...MD64)] on win32:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

Type "help", "copyright", "credits" or "license" for more information.
>>> 

shell不再接受任何输入。我被迫使用Ctrl+C。我知道这是非常基本的,但我似乎无法通过谷歌搜索错误来找到答案

您的环境变量设置是否正确

请参阅以下用户遇到类似问题的帖子:

也可以尝试在powershell控制台中键入以下内容:

[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27", "User")
此外,根据本文档,您可能需要更新powershell配置文件:


试着在命令行中输入它。谢谢@James_Parsons,它可以在命令提示符下工作,但我仍然希望它能在powershell中工作。有什么建议吗?