Hi, I encounter an error when I try to create a new django project use the command "django-admin startproject mysite". Could you tell me how to fix it? Thanks a lot.
Python version: 3.6.3 Django version: I have tried both 1.8 and 2.0. By the way, it doesn't have any problems when I use python 2.7. Traceback (most recent call last): File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\Scripts\django-admin-script.py", line 11, in <module> load_entry_point('Django==1.8.18', 'console_scripts', 'django-admin')() File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\core\management\__init__.py", line 354, in execute_from_command_line utility.execute() File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\core\management\__init__.py", line 328, in execute django.setup() File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\__init__.py", line 15, in setup from django.utils.log import configure_logging File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\utils\log.py", line 16, in <module> from django.views.debug import ExceptionReporter, get_exception_reporter_filter File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\views\debug.py", line 9, in <module> from django.core.urlresolvers import Resolver404, resolve File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\core\urlresolvers.py", line 17, in <module> from django.http import Http404 File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\http\__init__.py", line 4, in <module> from django.http.response import ( File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\http\response.py", line 13, in <module> from django.core.serializers.json import DjangoJSONEncoder File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\core\serializers\__init__.py", line 24, in <module> from django.core.serializers.base import SerializerDoesNotExist File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\core\serializers\base.py", line 6, in <module> from django.db import models File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\db\models\__init__.py", line 6, in <module> from django.db.models.query import Q, QuerySet, Prefetch # NOQA File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\db\models\query.py", line 16, in <module> from django.db.models import sql File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\db\models\sql\__init__.py", line 2, in <module> from django.db.models.sql.subqueries import * # NOQA File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\db\models\sql\subqueries.py", line 7, in <module> from django.db.models.query_utils import Q File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\db\models\query_utils.py", line 13, in <module> from django.db.backends import utils File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\db\backends\utils.py", line 11, in <module> from django.utils.timezone import utc File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\django-1.8.18-py3.6.egg\django\utils\timezone.py", line 17, in <module> import pytz File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\pytz\__init__.py", line 32, in <module> from pytz.lazy import LazyDict, LazyList, LazySet File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\site-packages\pytz\lazy.py", line 3, in <module> from UserDict import DictMixin File "C:\Users\hasee\AppData\Local\Programs\Python\Python36\lib\UserDict.py", line 167 raise TypeError, "pop expected at most 2 arguments, got "\ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/52527bcd-d08b-4912-98cf-e6062ab8b608%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.