简体   繁体   English

导入错误:没有名为 allauth 的模块错误

[英]ImportError: No module named allauth error

I'm a starter in python django.我是 python django 的初学者。 I've used social authentication in my application and now when i had to switch my laptop, I run my application it says ImportError: No module named allauth .我在我的应用程序中使用了社交身份验证,现在当我不得不切换我的笔记本电脑时,我运行我的应用程序它说ImportError: No module named allauth

I've tried the solutions available already on this site but the problem is it gives this error on each and every command i try to run.我已经尝试了该站点上已有的解决方案,但问题是它在我尝试运行的每个命令上都出现此错误。

"C:\Program Files\JetBrains\PyCharm 2017.1.2\bin\runnerw.exe" 
C:\Python27\python.exe D:/maryam/storefront/storefront/manage.py runserver 
8000
Unhandled exception in thread started by <function wrapper at 0x03EBD530>
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\utils\autoreload.py", line 226,    in wrapper
    fn(*args, **kwargs)
  File "C:\Python27\lib\site-
packages\django\core\management\commands\runserver.py", line 109, in 
inner_run
    autoreload.raise_last_exception()
  File "C:\Python27\lib\site-packages\django\utils\autoreload.py", line 249, 
in raise_last_exception
    six.reraise(*_exception)
  File "C:\Python27\lib\site-packages\django\utils\autoreload.py", line 226, 
in wrapper
    fn(*args, **kwargs)
  File "C:\Python27\lib\site-packages\django\__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "C:\Python27\lib\site-packages\django\apps\registry.py", line 85, in 
populate
    app_config = AppConfig.create(entry)
  File "C:\Python27\lib\site-packages\django\apps\config.py", line 90, in 
create
    module = import_module(entry)
  File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module
    __import__(name) 
ImportError: No module named allauth
a

要使用 pip 安装 allauth,请键入以下命令pip install django-allauth

You need to install the allauth module using pip.您需要使用 pip 安装 allauth 模块。

Please check this link for more details: http://django-allauth.readthedocs.io/en/latest/installation.html请查看此链接以获取更多详细信息: http : //django-allauth.readthedocs.io/en/latest/installation.html

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM