我是python django的首发。我在我的应用程序中使用了社交身份验证,现在当我不得不切换我的笔记本电脑时,我运行我的应用程序,它说 ImportError:没有名为allauth的模块。
我已尝试过此网站上已有的解决方案,但问题是它在我尝试运行的每个命令上都会出现此错误。
"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
答案 0 :(得分:2)
您需要使用pip安装allauth模块。
请查看此链接了解详情:http://django-allauth.readthedocs.io/en/latest/installation.html
答案 1 :(得分:1)
使用pip安装allauth,输入此命令
pip install django-allauth