0

problem with installing django i am geting folllowing error

E:\Softwares\Django-1.1.1.tar\Django-1.1.1\Django-1.1.1>setup.py install
Traceback (most recent call last):
  File "E:\Softwares\Django-1.1.1.tar\Django-1.1.1\Django-1.1.1\setup.py", line
48, in ?
    root_dir = os.path.dirname(__file__)
NameError: name '__file__' is not defined
2
  • 2
    And a recent version? (__file__ wasn't available in the main script until Python 2.3.) Commented Jan 20, 2010 at 12:24
  • 3
    That version is more than seven years old. Django is only compatible with versions 2.4 upwards. Commented Jan 20, 2010 at 13:33

2 Answers 2

4

The Python version you are using, 2.2, is more than seven years old. Django is only compatible with versions 2.4 upwards.

Sign up to request clarification or add additional context in comments.

Comments

0

You should usepython setup.py install

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.