【发布时间】:2017-08-18 06:26:02
【问题描述】:
我已经安装了python-social-auth==0.3.6。然后我迁移了,报错:
from social_django.models import AbstractUserSocialAuth, UserSocialAuth, Nonce, Association, Code, DjangoStorage
ImportError: No module named 'social_django'
【问题讨论】:
-
我也安装了:pip install python-social-auth[django] 和 pip install social-auth-app-django。但同样的错误发生。 Django 版本 ==1.10.5
-
如果你
pip freeze你会得到什么? -
(书签) C:\Python34>pip freeze defusedxml==0.5.0 Django==1.10.6 django-allauth==0.31.0 oauthlib==2.0.2 Pillow==2.9.0 PyJWT==1.4.2 python-social-auth==0.3.6 python3-openid==3.1.0 requests==2.13.0 requests-oauthlib==0.8.0 六==1.10.0 social-auth-app- django==1.1.0 social-auth-core==1.2.0
-
这很奇怪。我有完全相同的 virtualenv 并且工作出色,没有错误。你是否真的在你的项目中使用过这个包?
-
其实我告诉我我是初学者。所以我在这本书的帮助下做这个项目。我有很多问题,我都解决了,但这对我来说真的很难。关于包-可以指定哪个包请
标签: django