Azure ML Seaborn Module Not Found

I was doing some testing in Azure Machine Learning Notebooks and ran into a problem where the module I was looking to use was not working properly. The error I recieved was “ModuleNotFoundError: No module named ‘seaborn'”. The code I used which resulted in this was:

%matplotlib inline
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns 
sns.set(style="darkgrid")

This was relatively easy to correct by opening a terminal and installing the module, if you know how to do it in the Azure ML interface. The terminal button is on the right side of the interface:


To fix the error and allow seaborn to install properly, run the following in the terminal “python -m pip install seaborn”:

After this, the module loaded correctly and I was off to the races.

Happy coding!

Nathan Lasnoski

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s