Skip to content

how to import the ModelCheckpoint callback after using the pip install lightning ? #17048

@shamanez

Description

@shamanez

Bug description

I install pytorch_lightinng with the pip install lightning==1.9.4.

from pytorch_lightning.callbacks import ModelCheckpoint

The above command works well.

But how can I change it when using the lighting?

from lightning.callbacks import ModelCheckpoint

Gives the following error

ModuleNotFoundError: No module named 'lightning.callbacks'

How to reproduce the bug

from lightning.callbacks import ModelCheckpoint

Error messages and logs

# Error messages and logs here please

ModuleNotFoundError: No module named 'lightning.callbacks'

Environment

Current environment
#- Lightning Version (e.g., 1.94):
#- GPU models and configuration:
#- How you installed Lightning(`pip`):
#- Running environment of LightningApp (e.g. local, cloud):

More info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions