Windows命令提示符下的django-admin --version语法错误

时间:2018-12-16 19:01:53

标签: django python-3.x django-admin syntax-error python-3.4

我已经在我的PC上安装了Django最新版本即2.1,并将当前安装的python版本从3.5.rc1更新到了3.7.1。但是还是命令 'Django-admin --version'给出错误-

Traceback (most recent call last):
  File "C:\Python34\lib\runpy.py", line 170, in _run_module_as_main
   "__main__", mod_spec)
  File "C:\Python34\lib\runpy.py", line 85, in _run_code
   exec(code, run_globals)
  File "C:\Python34\Scripts\django-admin.exe\__main__.py", line 5, in <module>
  File "C:\Python34\lib\site-packages\django\core\management\__init__.py",
   from django.conf import settings
  File "C:\Python34\lib\site-packages\django\conf\__init__.py", line 18, in
   from django.utils.functional import LazyObject, empty
  File "C:\Python34\lib\site-packages\django\utils\functional.py", line 12
   return _curried_func(*args, *moreargs, **{**kwargs, **morekwargs})

0 个答案:

没有答案