Django-admin startproject myapp . gives me a big error

Traceback (most recent call last): File "/Users/x/Dev/tryDjango/bin/django-admin", line 8, in sys.exit(execute_from_command_line()) File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/core/management/init.py", line 371, in execute_from_command_line utility.execute() File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/core/management/init.py", line 365, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/core/management/base.py", line 288, in run_from_argv self.execute(*args, **cmd_options) File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/core/management/base.py", line 335, in execute output = self.handle(*args, **options) File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/core/management/commands/startproject.py", line 20, in handle super().handle('project', project_name, target, **options) File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/core/management/templates.py", line 117, in handle django.setup() File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/init.py", line 16, in setup from django.urls import set_script_prefix File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/urls/init.py", line 1, in from .base import ( File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/urls/base.py", line 8, in from .exceptions import NoReverseMatch, Resolver404 File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/urls/exceptions.py", line 1, in from django.http import Http404 File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/http/init.py", line 5, in from django.http.response import ( File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/http/response.py", line 13, in from django.core.serializers.json import DjangoJSONEncoder File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/core/serializers/init.py", line 23, in from django.core.serializers.base import SerializerDoesNotExist File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/core/serializers/base.py", line 6, in from django.db import models File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/db/models/init.py", line 3, in from django.db.models.aggregates import * # NOQA File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/db/models/aggregates.py", line 5, in from django.db.models.expressions import Case, Func, Star, When File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/db/models/expressions.py", line 486, in class TemporalSubtraction(CombinedExpression): File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/db/models/expressions.py", line 487, in TemporalSubtraction output_field = fields.DurationField() File "/Users/x/Dev/tryDjango/lib/python3.10/site-packages/django/db/models/fields/init.py", line 155, in init if isinstance(choices, collections.Iterator): AttributeError: module 'collections' has no attribute 'Iterator'

Back to Top