Skip to content

AttributeError: module 'transformers.utils.logging' has no attribute 'basicConfig' #297

Description

@moyanxinxu

如题所示,如果你遇到这个问题。

问题在于第9行的导包把第1行覆盖了,所以把调整导包的顺序能规避这个问题。

修改前:

截屏2024-10-30 17 33 14

修改后:

截屏2024-10-30 17 34 59

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions