ImportError: cannot import name 'Mapping' from 'collections'
#14329
Answered
by
akihironitta
Mpotrue
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
I cant import lightning package: ImportError: cannot import name 'Mapping' from 'collections'. In my Python 3.10 Mapping accessible by 'collections.abc' i.e 'from collections.abc import Mapping' not 'from collections import Mapping'. May be someone knows how fix this issue. Import lightining package trying run next command 'from collections import Mapping' |
Beta Was this translation helpful? Give feedback.
Answered by
akihironitta
Aug 21, 2022
Replies: 2 comments 11 replies
-
Would you mind providing the full error message and your environment detail? |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
akihironitta
-
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would you mind providing the full error message and your environment detail?