The error you're seeing:
No module named 'seaborn.external.six.moves'
usually indicates that your version of Seaborn is outdated or not compatible with your current Pandas or Python setup.
This error is often fixed in newer versions. In your terminal or Jupyter Notebook, run:
pip install seaborn --upgrade
Or in a Jupyter cell:
!pip install seaborn --upgrade
After updating, make sure to restart your Jupyter Notebook kernel to reload the updated package.
In Jupyter:
Kernel > Restart Kernel
To confirm you're using a recent version:
import seaborn as sns
print(sns.__version__)
✅ As of now, the latest stable version is
0.12.2
or above. Make sure you're at least on version0.11.0
.
You may need to also upgrade your Pandas and Matplotlib versions:
pip install pandas --upgrade
pip install matplotlib --upgrade