我正在尝试在PowerShell中使用Python。
- 论坛
- 我正在尝试在PowerShell中使用Python。
16 浏览
我正在尝试在PowerShell中使用Python。
我正在尝试遵循Zed Shaw的指南《笨办法学Python》。我需要在PowerShell中使用Python。
我已经安装了Python 2.7.3在C:\Python27
。无论我在PowerShell窗口中输入python
,都会出现一个错误提示:
'the term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program.'
我还输入了这个命令:[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27", "User")
这是一个提供的建议解决方案,但在PowerShell窗口中输入python
仍然没有任何反应。我可以输入"start python"来打开一个带有Python的窗口,但我需要在PowerShell中使用它。