7

I try to install this software. For that Python is required.

I installed Python from here of name python-2.7.3.msi.

I am working on Windows 7.

Hierarchy of my Python software is same as in this post.

After doing that, I make PATHVALUE = C:\Python27\Scripts

When I run any Python file, it shows

python is not recognized as an internal or external command, operable program or batch file. Failed to create vc project files.

How can I resolve this?

tripleee
  • 175,061
  • 34
  • 275
  • 318
devsda
  • 4,112
  • 9
  • 50
  • 87

2 Answers2

11

You want to append to your PATH the string C:\Python27, not the scripts folder. Basically, you want the folder with the actual binary python.exe on your path.

Yuushi
  • 25,132
  • 7
  • 63
  • 81
  • 1
    ohk, i have done what you said, but it stils show the same error – devsda Jan 21 '13 at 06:48
  • yes, I opened new prompt in windows. and for your information I download python from here http://python.org/ftp/python/2.7.3/python-2.7.3.msi – devsda Jan 21 '13 at 06:52
  • @jhamb Open up a command prompt and type `PATH` - make sure it's actually there, and the actual location where your `python.exe` binary resides. Try manually running python from the command line as well - simply type `ptyhon`. – Yuushi Jan 21 '13 at 06:53
  • 2
    I checked PATH, it shows `C:\Python27`, paath. but, when i wrote python, it shows the same error – devsda Jan 21 '13 at 06:55
  • @jhamb Double check that your Python installation is *actually* in `C:\Python27`. Make sure it's separated from the previous entry in your path by a semicolon, like `C:\foo;C:\Python27` – Yuushi Jan 21 '13 at 07:01
  • 1
    @Yuushi: Thanks , Actually I left one space after semicolon. I accepted your answer. – devsda Jan 21 '13 at 07:31
  • @Yuushi: That problem is solved. Actually i tried to do this https://github.com/joyent/node/wiki/Installation Now it shows `Build skipped, To build, this file have to run from VS cmd prompt` What can I do now. (I am new in this) – devsda Jan 21 '13 at 07:35
  • @jhamb Do you have visual studio installed? If so, go to start -> visual studio -> visual studio tools -> visual studio command prompt, and follow the instructions from there. – Yuushi Jan 21 '13 at 07:44
  • "Basically, you want the folder with the actual binary python.exe on your path." every answer on SO with this issue should have these words – WHOATEMYNOODLES Aug 14 '19 at 00:07
2

Try this screencast or (not a best way) put python executable into C:\Windows\system32 folder.

The better way is to change Windows environment variable. In short, your path is: My Computer ‣ Properties ‣ Advanced ‣ Environment Variables

For more details please see this.

insider
  • 1,818
  • 2
  • 17
  • 15