Answer the question
In order to leave comments, you need to log in
When creating a django project, it gives an error. why?
When creating a django project (v. 1.6.1 and Python v 3.6.0) on Pycharm 5.0.4, it gives an error
Error:Traceback (most recent call last):
File "C:/Python/Python36-32/Lib/site-packages/django/bin/django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "C:\Python\Python36-32\Lib\site-packages\django\core\management\__init__.py", line 399, in execute_from_command_line
utility.execute()
File "C:\Python\Python36-32\Lib\site-packages\django\core\management\__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Python\Python36-32\Lib\site-packages\django\core\management\__init__.py", line 272, in fetch_command
klass = load_command_class(app_name, subcommand)
File "C:\Python\Python36-32\Lib\site-packages\django\core\management\__init__.py", line 75, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "C:\Python\Python36-32\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "C:\Python\Python36-32\Lib\site-packages\django\core\management\commands\startproject.py", line 2, in <module>
from django.core.management.templates import TemplateCommand
File "C:\Python\Python36-32\Lib\site-packages\django\core\management\templates.py", line 16, in <module>
from django.template import Template, Context
File "C:\Python\Python36-32\Lib\site-packages\django\template\__init__.py", line 53, in <module>
from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END,
File "C:\Python\Python36-32\Lib\site-packages\django\template\base.py", line 19, in <module>
from django.utils.html import escape
File "C:\Python\Python36-32\Lib\site-packages\django\utils\html.py", line 14, in <module>
from .html_parser import HTMLParser, HTMLParseError
File "C:\Python\Python36-32\Lib\site-packages\django\utils\html_parser.py", line 12, in <module>
HTMLParseError = _html_parser.HTMLParseError
AttributeError: module 'html.parser' has no attribute 'HTMLParseError'
Answer the question
In order to leave comments, you need to log in
Because Django prior to version 1.8 does not support Python 3.3 and above.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question