简体   繁体   English

ModuleNotFoundError:没有名为“ allauth”的模块

[英]ModuleNotFoundError: No module named 'allauth'

This is my installed app. 这是我安装的应用程序。

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.sites',
    'allauth',
    'allauth.account',
    'allauth.socialaccount',
    'rest_framework',
    'rest_framework.authtoken',
    'rest_auth',
    'rest_auth.registration',

    'corsheaders',
    'articles',
]

I am using django 2.1 and rest framework.I want to implement rest auth registration. 我正在使用django 2.1和rest框架。我想实现rest auth注册。 So I have followed this step by step guidelines from official documentation . 因此,我遵循了官方文档中的分步指南。 When I hit enter the migrate command python manage.py migrate I am getting following error: 当我点击输入迁移命令python manage.py migrate时,出现以下错误:

File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'allauth'

Before migrate you need to install the django rest auth packages which contain all packages including allauth 迁移之前,您需要安装django rest auth软件包,其中包含所有软件包,包括allauth

pip install django-rest-auth[with_social]

and then migrate your database. 然后迁移数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ModuleNotFoundError:尝试创建超级用户时没有名为“allauth”的模块 - ModuleNotFoundError: No module named 'allauth' when trying to createsuperuser ModuleNotFoundError:没有名为“allauth.accountallauth”的模块 - ModuleNotFoundError: No module named 'allauth.accountallauth' ModuleNotFoundError:没有名为“allauth.socialaccount.providers.Apple”的模块 - ModuleNotFoundError: No module named 'allauth.socialaccount.providers.Apple' 从 django.allauth.account.adapter 导入 DefaultAccountAdapter ModuleNotFoundError:没有名为“django.allauth”的模块 - from django.allauth.account.adapter import DefaultAccountAdapter ModuleNotFoundError: No module named 'django.allauth' ImportError:没有名为allauth的模块 - ImportError: No module named allauth 导入错误:没有名为 allauth 的模块错误 - ImportError: No module named allauth error ModuleNotFoundError: 没有名为 &#39;django 的模块 - ModuleNotFoundError: No module named 'django ModuleNotFoundError:没有名为“django”的模块 - ModuleNotFoundError: No module named 'django' ModuleNotFoundError:没有名为“ apps”的模块 - ModuleNotFoundError: No module named 'apps' ModuleNotFoundError:没有名为“ bootstrapform”的模块 - ModuleNotFoundError: No module named 'bootstrapform'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM