0

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.

6
  • 4
    If You 'set the path correctly' there probably wouldn't be a problem. Give Your PATH variable here. Commented Feb 16, 2010 at 16:17
  • The programm is called setup.py or setup-windows.py Commented Feb 16, 2010 at 16:21
  • Oh my god, it isn't in the path. Commented Feb 16, 2010 at 16:22
  • I set the path in the environment variables. Commented Feb 16, 2010 at 16:25
  • 2
    @kame: Please stop commenting on your own question. Please delete your comments. Please UPDATE the question with the information, so that everything we need to know is in the question. Please stop adding comments to a question which you own and can fix. Commented Feb 16, 2010 at 18:14

3 Answers 3

4

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Dammit too: I set the pythonpath, but nothing changes. :)
I found the problem. There where two different pythonpath!!! personal variables path and system variables path. :)
3

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.

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.