ModuleNotFoundError: No module named 'psutil'

I am taking the course “Generative AI with Large Language Models”. For Lab 1 - Generative AI Use Case: Summarize Dialogue, when I run the code for 1 - Set up Kernel and Required Dependencies, it says that ModuleNotFoundError: No module named ‘psutil’. Then when I run the next cell, it says ModuleNotFoundError: No module named ‘datasets’.

Could you someone help me fix this issue? Thanks!

Hi! If it’s the first cell that checks the instance, you can ignore that. We might delete that if psutil is not loaded by default. We’ll check and update accordingly. Thank you for reporting!

The important part is running the second cell that pip installs the requirements. That comes before importing datasets. Hope this helps.

I just ran the lab and it’s working. One more thing to watch out for is the kernel. Please select the Python 3 kernel (as shown in the instructions) and not the Glue options.