Vicky
Vicky

Reputation: 1687

python not starting properly

I have installed python and django in my system that uses win vista. Now when I go to command prompt and type python or django-admin.py both are not working. Every time I need to set the path to the python folder manually. But i have seen these commands running even without setting path. So how do i make it to run properly?

Upvotes: 0

Views: 152

Answers (4)

S.Lott
S.Lott

Reputation: 391820

Either use the system control panel to set the PATH environment variable that applies permanently or

Reinstall Python as a system administrator so that the installer can set the registry and environment variables for you.

If you install the "just for me" option, then you have to set the PATH variable in the control panel.

Upvotes: 0

SpliFF
SpliFF

Reputation: 38956

you can't run a command that isn't in your path. it should be set globally when you installed python.

type 'set' at a dos prompt and look at the PATH variable. c:\python25 (or whever you installed python) has to be in that variable ie PATH=c:\windows;c:\python25;... etc

if it isn't in PATH then you or the installer missed the part where you needed to set it. It can be done from the 'Environment Variables' button in the 'System' control panel.

Upvotes: 1

Brett Bim
Brett Bim

Reputation: 3308

In your path, I think you need to have both the location of the Python install and the Python\Scripts folder. For example, on XP, I have C:\Python25;C:\Python25\Scripts. Can you verify that you have both?

Upvotes: 0

John Montgomery
John Montgomery

Reputation: 9058

You probably need to add Python to you dos path. Here's a video that may help you out:

http://showmedo.com/videotutorials/video?name=960000&fromSeriesID=96

Upvotes: 2

Related Questions