Can';t在Windows Powershell中打开python.exe
不久前,我的python程序已从windows中删除,最近从主站点下载了python2.7.4,但当我从C:在windows PowerShell(x86)提示符中键入“python”时,我收到消息“python”未被识别为内部或外部命令、可操作程序或批处理文件。”,我想知道如何解决这个问题 当我在实际的python27文件夹中时,我收到了相同的消息(而且Can';t在Windows Powershell中打开python.exe,python,windows,powershell,path,exe,Python,Windows,Powershell,Path,Exe,不久前,我的python程序已从windows中删除,最近从主站点下载了python2.7.4,但当我从C:在windows PowerShell(x86)提示符中键入“python”时,我收到消息“python”未被识别为内部或外部命令、可操作程序或批处理文件。”,我想知道如何解决这个问题 当我在实际的python27文件夹中时,我收到了相同的消息(而且python.exe确实在那里)。但是,当我输入\python时,它会按预期运行,我的计算机可以运行其他.exe。我正在Sony VAIO笔记
python.exe
确实在那里)。但是,当我输入\python
时,它会按预期运行,我的计算机可以运行其他.exe
。我正在Sony VAIO笔记本电脑上使用Windows 7 Home Premium Service Pack 1。我不太熟悉我电脑的内部工作原理,所以我不确定从这里看哪里
我的当前路径如下所示,python文件夹位于最末端:
%SystemRoot%\system32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files(x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramFiles\WIDCOMM\Bluetooth软件\;C:\ProgramFiles\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files(x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files(x86)\Common Files\Roxio Shared\DLLShared\;C:\ProgramFiles(x86)\Common Files\Adobe\AGL;C:\ProgramFiles(x86)\Windows Live\Shared;C:\ProgramFiles\Java\jdk1.6.0\U 23\bin;c:\ProgramFiles(x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\ProgramFiles(x86)\MySQL\MySQL Workbench CE 5.2.42;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\ProgramFiles(x86)\apache-ant-1.8.4\bin;C:\Program Files\TortoiseSVN\bin;C:\Windows\system32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files(x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramFiles\WIDCOMM\Bluetooth软件\;C:\ProgramFiles\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files(x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files(x86)\Common Files\Roxio Shared\DLLShared\;C:\ProgramFiles(x86)\Common Files\Adobe\AGL;C:\ProgramFiles(x86)\Windows Live\Shared;C:\ProgramFiles\Java\jdk1.6.0\U 23\bin;c:\ProgramFiles(x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\ProgramFiles(x86)\MySQL\MySQL Workbench CE 5.2.42;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\ProgramFiles(x86)\apache-ant-1.8.4\bin;C:\Program Files\TortoiseSVN\bin;C:\ProgramFiles\Java\jdk1.6.0\U 23\bin;C:\Python27
将这些评论作为未来参考的答案:
有一个
代码>在路径的末尾,然后注销并重新登录 将这些评论作为未来参考的答案:
有一个代码>在路径的末尾,然后注销并重新登录 两个“愚蠢”的建议-有一个代码>在路径的末尾,然后注销并重新登录。它可以工作!谢谢你的快速回复。几个“愚蠢”的建议-有一个代码>在路径的末尾,然后注销并重新登录。它可以工作!谢谢你的快速回复。