ModuleNotFoundError: No module named 'anymail'

来源:4-5 删改部分文件完成项目初始模板

慕用5027443

2019-09-29

[root@localhost zanhu]# pipenv run python manage.py migrate
Loading .env environment variables…
Traceback (most recent call last):
File “manage.py”, line 30, in
execute_from_command_line(sys.argv)
File “/root/.local/share/virtualenvs/zanhu-Lm4E6Kwn/lib/python3.7/site-packages/django/core/management/init.py”, line 381, in execute_from_command_line
utility.execute()
File “/root/.local/share/virtualenvs/zanhu-Lm4E6Kwn/lib/python3.7/site-packages/django/core/management/init.py”, line 357, in execute
django.setup()
File “/root/.local/share/virtualenvs/zanhu-Lm4E6Kwn/lib/python3.7/site-packages/django/init.py”, line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File “/root/.local/share/virtualenvs/zanhu-Lm4E6Kwn/lib/python3.7/site-packages/django/apps/registry.py”, line 89, in populate
app_config = AppConfig.create(entry)
File “/root/.local/share/virtualenvs/zanhu-Lm4E6Kwn/lib/python3.7/site-packages/django/apps/config.py”, line 90, in create
module = import_module(entry)
File “/root/.local/share/virtualenvs/zanhu-Lm4E6Kwn/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “

写回答

2回答

Clown08

2019-10-02

No module named 'anymail'

请找到配置文件里面有关 'anymail' 的内容删掉即可

1
0

Jack

2019-10-08

楼下正解,项目里用的自己邮箱,没有使用anymail

0
0

Django高级实战 开发企业级问答网站

融合Django高级用法/算法/设计模式/TestCase测试/云计算打造项目

900 学习 · 756 问题

查看课程