views:

101

answers:

3

I want to install summon-module on windows 7. I tried

python setup.py install

but cmd doesn't know the command "python".

I also set the path correctly. What is the problem? Thanks in advance.

A: 

on windows it is python.exe and you need the path to the executable added to your environment or to use the fully qualified path

fuzzy lollipop
+4  A: 

PATH needs to point to the directory your python.exe is in, or it needs to be in the current directory, or you need to specify the full path.

PYTHONPATH needs to point to the directory your setup.py is in, or it needs to be in the current directory, or you need to specify the full path.

jcdyer
But where can I set this?
kame
Dammit: http://www.google.com/search?q=set+path+on+windows+7
Will McCutchen
Dammit too: I set the pythonpath, but nothing changes. :)
kame
I found the problem. There where two different pythonpath!!! personal variables path and system variables path. :)
kame
@Will Google doesn't show this solution. :/
kame
+3  A: 

Add the directory with the python.exe to your path via Control Panel -> System -> Advanced -> Environment Variables. Then scroll through the System variables listed in the lower part of the screen, highlight "Path", and click edit. Add (don't replace!) the directory to that variable, probably at the end. Make sure there's a semi-colon (';')between it and the entries in front of and (if appropriate) behind it; I recommend putting a semi-colon at the end even if it's the last value. Once you've done this, click the Ok button on the environment variables dialog box and start a new commend shell. You can type path at the prompt to get the path displayed so you can confirm that the python directory has been added.

GreenMatt