Error importing Seaborn module in Python

后端 未结 15 1440
长情又很酷
长情又很酷 2020-12-31 00:24

I am trying to import seaborn into python (using 2.7) using the following code:

import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
imp         


        
15条回答
  •  北荒
    北荒 (楼主)
    2020-12-31 01:04

    As @avp says the bash line pip install seaborn should work I just had the same problem and and restarting the notebook didn't seem to work but running the command as jupyter line magic was a neat way to fix the problem without restarting the notebook

    Jupyter Code-Cell:

    %%bash
    pip install seaborn
    

提交回复
热议问题