简体   繁体   中英

problem in installing django

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

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

您应该使用python setup.py install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM