0

I am trying to install Django by using a tutorial.(tutorial.)

I download the latest release (1.6.2) and untar(unzip) it.

Then I open the file that contains Django on my Desktop and copy the Directory.

I open the command prompt.

From C:\Users\Name\Desktop> I type cd and I paste the Directory.

This opens the Django directory which is C:\Users\Name\Desktop\Django-1.6.2

Inside this file there is a setup.py file.

According to the tutorial if I type python setup.py install it will install Django for me! And this actually happens in the tutorial video but not in my case!!!

When I type it gives me the following:

'python' is not recognized as an internal or external command, operable program or batch file.

If I go into the Django file and Double-click the setup.py file I momentarily see in the window (before it closes) error: no commands supplied

What must I do? I am trying to install Django for 2 days now and it is getting really frustrating.


SOLVED

Must set Path Variable from Environmental Variables FIRST!

For a quick solution, look at the answer + this post and choose melhosseiny's answer.

Community
  • 1
  • 1
ExoticBirdsMerchant
  • 1,226
  • 7
  • 23
  • 53

1 Answers1

1

Use the command C:\Python27\python setup.py install

Additionally, if you don't want to add C:\Python27\ to all of your python commands, you need to add it to your Windows Path. This can be done by going to your environment variables and add C:\Python27 (notice the lack of a trailing slash) to the PATH variable. Make sure you are adding to, not replacing, the values there are present.

Andy
  • 43,170
  • 54
  • 150
  • 214