Jay*_*thy 5 python seaborn google-colaboratory
我想在Google colab上的ipynb中使用seaborn == 0.8.1.这是我的代码:
"""General import statements and settings config."""
!pip install seaborn==0.8.1
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
pd.set_option('max_columns', 10)
color = sns.color_palette()[0]
print (sns.__version__)
Run Code Online (Sandbox Code Playgroud)
但是,这会输出以下内容:
Requirement already satisfied: seaborn==0.8.1 in /usr/local/lib/python3.6/dist-packages (0.8.1)
0.7.1
Run Code Online (Sandbox Code Playgroud)
如果满足要求,我为什么要导入旧版本的Seaborn?
!pip install seaborn --upgrade packageName然后重新启动内核/运行时。
如果您只需要将托管协作笔记本中的seaborn升级到最新版本,然后运行
!pip install seaborn --upgrade并重新启动内核/运行时。
| 归档时间: |
|
| 查看次数: |
3999 次 |
| 最近记录: |