tags:

views:

84

answers:

2

I'm new to python and is trying to install the pyimage module. http://code.google.com/p/pyimage/

I'm on Windows, and have downloaded and installed 2.6 and 3.1.

I downloaded pyimage, and used cmd and cd to get to its dir.

I then got this:

C:\Users\Jourkey\Desktop\pyimage-0.8.13\pyimage-0.8.13>python setup.py install
'python' is not recognized as an internal or external command,
operable program or batch file.

How do I install this?

Thanks!

+3  A: 

It is giving you that error because Python is not in your path. By default, the Python executable is not added to the path. You will have to do it manually. An in-depth tutorial endorsed by the Python website may be found here.

Furutsuzeru
Thanks, but there's no 'scripts' dir in my python26. Am I supposed to ignore that part?
Jourkey
but there's \Tools\Scripts
Georg
Thanks. :) Unfortunately still getting the same error. Could anything else be the problem?
Jourkey
You will need to close your terminal and re-open it again after adding it. Otherwise, you are supposed to add the main Python installation directory (i.e. C:\Python26) to your PATH, since that is where the executable is located in. The scripts directory exists for external packages that may be run from the command line, such as easy_install.
Furutsuzeru
Ahah, it was closing and reopening that got me. Thanks :)
Jourkey
A: 

To put Python on your system's environment PATH variable, so that running python at a command prompt will work, follow the instructions in this video.

Alex Martelli