Azure ML Seaborn Module Not Found

Author by Nathan Lasnoski

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 

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


Nathan Lasnoski

Chief Technology Officer