问题描述
我是python django的入门者.我在应用程序中使用了社交身份验证,现在当我不得不切换笔记本电脑时,我在运行应用程序时显示导入错误:没有名为allauth的模块.
I'm a starter in 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.
我已经尝试过该站点上已有的解决方案,但是问题是,它在我尝试运行的每个命令中都给出了此错误.
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模块.
You need to install the allauth module using pip.
请查看此链接以获取更多详细信息: http://django-allauth .readthedocs.io/en/latest/installation.html
Please check this link for more details: http://django-allauth.readthedocs.io/en/latest/installation.html
这篇关于ImportError:没有名为allauth的模块错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!