情景:在powershell中运行python程序时,没有反应,没有错误提示。 解决方法: 先在powershell下输入并执行以下指令: [Environment]::SetEnvironmentVariable(“Path”,”$env:Path;C:Python27″, “User”) 关闭并重启powershell,输入python并按回车键,即可运行python。 python学习网,免费的在线学习python平台,欢迎关注!