【发布时间】:2017-03-30 17:51:23
【问题描述】:
我正在尝试在 EC2 AWS ipython 笔记本上将 seaborn 作为 sns 导入。
但我收到以下错误。请帮忙
import seaborn as sns
ImportError Traceback(最近一次调用最后一次) 在 () ----> 1 导入 seaborn 作为 sns
ImportError: 没有名为 seaborn 的模块
【问题讨论】:
标签: seaborn
我正在尝试在 EC2 AWS ipython 笔记本上将 seaborn 作为 sns 导入。
但我收到以下错误。请帮忙
import seaborn as sns
ImportError Traceback(最近一次调用最后一次) 在 () ----> 1 导入 seaborn 作为 sns
ImportError: 没有名为 seaborn 的模块
【问题讨论】:
标签: seaborn
您可能首先要下载 seaborn 软件包。默认情况下,它在 python 安装时不可用。
使用pip下载:
pip install seaborn
另外,您可以尝试安装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
【讨论】: