Google Colab不更新包?

2024-05-29 11:31:19 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在Google colab上的ipynb中使用seabrn==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__)

但是,这会产生以下结果:

Requirement already satisfied: seaborn==0.8.1 in /usr/local/lib/python3.6/dist-packages (0.8.1)
0.7.1

如果满足要求,我为什么要进口旧版本的Seaborn?


Tags: and代码importmatplotlibasgoogleseaborncolor

热门问题