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

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