Thursday 15 May 2014

python - Unable to use an environment variable in command prompt, even though I can print it's value using echo command -



python - Unable to use an environment variable in command prompt, even though I can print it's value using echo command -

i have declared environmental variables follows:

ctrl+x -> scheme -> advanced scheme settings -> environment variables

and there, have set new user variable name python

however, when type python in command prompt, error

'python' not recognized internal or external command, operable programme or batch file.

when utilize echo command, shows me value of environment variable, makes me think have done steps right. cannot figure out why unable utilize environment variable.

i have attached snapshot showing cmd commands

i have done own research on this, can't figure out why, when echo command works on variable, unable utilize it. have triple checked whether path exists, , does. also, h:\ drive ( referring above image ) external portable hard drive connected pc via usb.

it variable, need retrieve value, not utilize name. if utilize %python% echo value, utilize %python% phone call executable

python cmd environment-variables command-prompt

No comments:

Post a Comment