gpt4 book ai didi

python - 导入seaborn产生SHIM警告

转载 作者:太空宇宙 更新时间:2023-11-03 14:58:34 25 4
gpt4 key购买 nike

如果我尝试在我的脚本中导入 seaborn,我会收到此错误:

/usr/local/lib/python2.7/dist-packages/IPython/html.py:14: ShimWarning: 
The `IPython.html` package has been deprecated. You should import from
`notebook` instead. `IPython.html.widgets` has moved to `ipywidgets`.
"`IPython.html.widgets` has moved to `ipywidgets`.", ShimWarning)

我在 Ubuntu 16.04 64 位上从 pip 安装了 seaborn 在最后一个版本 0.7.1 上。有人有想法吗?

seaborn 正在运行,但这个警告非常烦人。

最佳答案

seaborn项目有个issue解释这个问题的原因和解决方法:https://github.com/mwaskom/seaborn/issues/874

基本上它说:

pip install ipywidgets

关于python - 导入seaborn产生SHIM警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40505955/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com