[Troubleshooting] Week #2 Lab -- Failed Import

For the Week 2 Lab, I’m unable to get the required libraries from transformers imported. It’s saying torch.distributed is not installed, even though I pip installed torch. Any ideas how to resolve this?

Hi Adithya and welcome to the community!

This issue is usually caused by an unsuccessful pip install. Please make sure that the previous cell executes successfully before trying these imports. You can also clear the workspace and re-run the code.

Hope this helps!

Hi! Following up to this thread - I faced the same situation. Wondering whether this (in the screenshot) might be the reason + how to resolve it, as all the previous pip install seem right to me (showing msg “Requirement already satisfied”.