【发布时间】:2020-05-29 01:27:41
【问题描述】:
fig, axes = plt.subplots(2,figsize=(15,10))
sns.lineplot(agg_cases_death.index, agg_cases_death.cases, ax=axes[0]).set_title('Cases')
sns.lineplot(agg_cases_death.index, agg_cases_death.deaths, ax=axes[1]).set_title('Deaths')
plt.show()
上面曾经在我桌面上的 jupyter notebook 上完美运行,但是当我在 AWS Sagemaker Jupyter notebook 中运行相同的代码时,它会产生错误。它说模块“seaborn”没有属性线图。
在使用 aws sagemaker jupyter 时我们需要设置什么?
【问题讨论】:
-
如果笔记本在您的本地计算机上运行,您可能首先检查您安装的软件包版本,并确保在远程主机上安装了相同的版本。
$ pip show seaborn会打印一些包的详细信息,包括你安装的版本。
标签: python amazon-web-services jupyter-notebook amazon-sagemaker