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.