python - Django installation problem on Windows -


I am trying to install Django on Windows XP

P>

C: \ Python 27

(1) P>

(3 ) After unzipping the file, I have placed the Django folder in the Python site packages folder:

C: \ Python 27 \ LibSite-package \ Django-1.2.1


(4) Now when I try to run "setup.py" in the Django folder, I get the following error:

  traceback (from all Bengal's call last): File "C: \ Python27 \ Lib \ site- package \ Django-1.2.1 \ setup.py", line 48, & lt; Module & gt; Error named: Root_dir = os.path.dirname (__ file__): The name '__file__' is not defined  

The screenshot can be seen below:

What am I doing?

Thanks

alternative method

  1. installed easy_install :
  2. Add C: \ Python27 \ Scripts in your system path
  3. Open a command line and type Enter easy_install django .

This will pull the latest version of Django

easy_install Definitely install Python module My favorite way to do


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -