0

我有以下问题:

ImportError: No module named 'seaborn'
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-19-ed9806ce3570> in <module>()
----> 1 import seaborn as sns
ImportError: No module named 'seaborn'
4

1 回答 1

1

您需要在 anaconda 提示窗口中运行以下代码。打开anaconda提示窗口并运行这个

conda install -c anaconda seaborn

它会安装它,一旦您在 Rodeo 中将 seaborn 作为 sns 导入,您将不会再收到以下错误。

"SyntaxError: invalid syntax (<ipython-input-54-31269c32ce07>, line 1)
  File "<ipython-input-54-31269c32ce07>", line 1
    conda install -c anaconda seaborn
                ^
SyntaxError: invalid syntax"

祝你好运

于 2018-06-23T21:52:34.117 回答