OSError: [WinError 123] while installing allauth in django

Solution for OSError: [WinError 123] while installing allauth in django
is Given Below:

The problem is so simple. I’ve installed django all auth, all based on documentation:

Running pip install django-allauth on cmd

Changing settings.py installed apps to:

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.sites',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'allauth',
    'allauth.account',
    'allauth.socialaccount',
    'allauth.socialaccount.providers.google',
    'allauth.socialaccount.providers.facebook',

    # Third party apps
    'rest_framework',
    'api',
    'management',
]

And then I cannot run the server, getting the below error:

OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '<frozen importlib._bootstrap>'

What I have done to solve the problem:
I searched several questions and realized there can be two reasons for this error:

  1. When the package is not installed. For this, I checked my virtual env packages using pip list and well, django-allauth is installed.
  2. When we got misspelling. For this one, I’ve just copied and pasted all required options directly from the documentations. There cannot be any misspelling.

Any help is appreciated!