How can I make sure I can run Python in Powershell? -
i have looked questions on stackoverflow. using python 2.7.11.
when open powershell , type in python intended error:
indentationerror: unexpected indent what found on stackoverflow this:
[environment]::setenvironmentvariable("path", "$env:path;c:\python27") when run python works. however, can don't have enter [environment]::setenvironmentvariable("path", "$env:path;c:\python27") every time run poweshell?
i assuming python directory not in system path variable,to put there.
1.open control panel
2.search env, see edit system environment variables in results.
3.click select environment variable , edit path variable ,just write fulll path python directory c:\python27; save in there , go.
Comments
Post a Comment