美文网首页
ImportError: cannot import name

ImportError: cannot import name

作者: 郭欢小哥 | 来源:发表于2020-03-26 19:23 被阅读0次

    sudo vim __init__.py

    添加以下:

    from werkzeug.utils import cached_property

    位置:ubuntu: /usr/local/lib/python3.6/dist-packages/werkzeug

    修改后:

    """

    werkzeug

    ~~~~~~~~

    Werkzeug is the Swiss Army knife of Python web development.

    It provides useful classes and functions for any WSGI application to

    make the life of a Python web developer much easier. All of the provided

    classes are independent from each other so you can mix it with any other

    library.

    :copyright: 2007 Pallets

    :license: BSD-3-Clause

    """

    from .serving import run_simple

    from .test import Client

    from .wrappers import Request

    from .wrappers import Response

    from werkzeug.utils import cached_property

    __version__ = "1.0.0"

    相关文章

      网友评论

          本文标题:ImportError: cannot import name

          本文链接:https://www.haomeiwen.com/subject/nhchuhtx.html