gpt4 book ai didi

python - ImportError:html5lib 中没有名为 base 的模块

转载 作者:太空狗 更新时间:2023-10-30 02:40:22 27 4
gpt4 key购买 nike

我突然无法启动 Django 服务器,运行检查:

python manage.py check

显示以下错误:

    apps.populate(settings.INSTALLED_APPS)
File "/home/aym/.virtualenvs/prod_env/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
app_config.import_models(all_models)
File "/home/aym/.virtualenvs/prod_env/local/lib/python2.7/site-packages/django/apps/config.py", line 198, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/aym/workspace/CompanyP/apps/account/models.py", line 18, in <module>
from apps.groups.models import SubscriptionGroup
File "/home/aym/workspace/CompanyP/apps/subscription/models.py", line 8, in <module>
from apps.member.models import Member
File "/home/aym/.virtualenvs/prod_env/local/lib/python2.7/site-packages/bleach/__init__.py", line 5, in <module>
from bleach.linkifier import
File "/home/aym/.virtualenvs/prod_env/local/lib/python2.7/site-packages/bleach/linkifier.py", line 5, in <module>
from html5lib.filters.base import Filter
ImportError: No module named base

你有什么想法吗?

最佳答案

我认为您的html5libbleach 版本不兼容。也许由于某种原因你有最新版本的 bleach但不是最新的 html5lib。 bleach 2.0.0 版本不再支持 html5lib < 0.99999999 (8 9s)。检查Backwards incompatible changes

我认为你必须安装最新的 html5lib (9 9s)。

pip install html5lib==0.999999999

关于python - ImportError:html5lib 中没有名为 base 的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42715801/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com