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
- installed
easy_install
:- Add
C: \ Python27 \ Scripts
in your system path- 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
Post a Comment