Tech Support > Microsoft Windows > Basics > Need to put python.exe in PATH environment variable
Need to put python.exe in PATH environment variable
Posted by Jack Crane on October 5th, 2005


I need to put "python.exe" in PATH environment variable. How to do this in
Win XP?

Thanks,

Posted by Tom Porterfield on October 5th, 2005


Jack Crane wrote:
> I need to put "python.exe" in PATH environment variable. How to do this in
> Win XP?


You can't put the exe name in the PATH variable. You can put the
directory that contains python.exe in the PATH variable. To do that,
find the directory that contains python.exe. Once you have that noted,
right click on My Computer and select Properties. Go to the Advanced
tab and click the Environment Variables button. In the list of System
variables, scroll down until you find the variable named Path. Double
click on it to edit. Position the mouse cursor at the end of the
current value. If there isn't a semi-colon at the end, add a
semi-colon. Following the semi-colon enter the name of the directory
that contains python.exe. Once you are done, click OK, OK and OK.
Depending on what process needs the directory for python.exe in the
path, you may need to reboot for the change to be picked up.
--
Tom Porterfield
MS-MVP Windows
http://support.telop.org

Please post all follow-ups to the newsgroup only.

Posted by Jack Crane on October 5th, 2005


Tom Porterfield <tpporter@mvps.org> wrote in
news:OO93iDdyFHA.3180@TK2MSFTNGP14.phx.gbl:

> Jack Crane wrote:
>> I need to put "python.exe" in PATH environment variable. How to do
>> this in Win XP?

>
> You can't put the exe name in the PATH variable. You can put the
> directory that contains python.exe in the PATH variable. To do that,
> find the directory that contains python.exe. Once you have that
> noted, right click on My Computer and select Properties. Go to the
> Advanced tab and click the Environment Variables button. In the list
> of System variables, scroll down until you find the variable named
> Path. Double click on it to edit. Position the mouse cursor at the
> end of the current value. If there isn't a semi-colon at the end, add
> a semi-colon. Following the semi-colon enter the name of the
> directory that contains python.exe. Once you are done, click OK, OK
> and OK. Depending on what process needs the directory for python.exe
> in the path, you may need to reboot for the change to be picked up.


Thanks very much.

Jack


Similar Posts