2
votes

I am trying to import seaborn as sns on EC2 AWS ipython notebook.

But I am getting the following error. Please help

import seaborn as sns

ImportError Traceback (most recent call last) in () ----> 1 import seaborn as sns

ImportError: No module named seaborn

1

1 Answers

2
votes

You may first want to download seaborn package. It is not available by default with python installation.

Use pip to download :

pip install seaborn

Additionaly, you can try installing anaconda

$ curl -O https://repo.continuum.io/archive/Anaconda3-4.3.1-Linux-x86_64.sh
$ chmod 777 Anaconda3-4.3.1-Linux-x86_64.sh
$ ./Anaconda3-4.3.1-Linux-x86_64.sh
... (Press enter/yes where ever required )
$ conda install seaborn