根据海运文档,这里 seaborn.distplot()已经被否决了,支持的前进的地块是:seaborn.displot()和seaborn.histplot()。
但是,当我尝试使用displot()或histplot()时,会得到以下属性错误:
AttributeError: module 'seaborn' has no attribute 'displot'
注意,我可以成功地运行seaborn.jointplot()和其他各种程序。
我发现这一点,所以发布模块Seaborn没有属性“”,但这似乎不是解决我的问题。
我的海运版0.10.1安装在我的MacOS 10.15.5 (19F101)上
今天早些时候,我有海运0.9.0,也有同样的问题,所以我删除了使用App & Uninstaller应用程序并重新安装的Anaconda发行版。现在我有了海运版本0.10.1。
Anaconda的新安装不应该处理所有依赖关系和需求吗?
见下面的属性错误屏幕截图。有什么好主意吗?

更新:
看来,上述地块仅在最近才可用,从海运0.11.0开始。因此,我试图安装新的海运通过:conda install seaborn==0.11.0,但似乎是什么地方的康达或频道。它试图解决环境问题,但它处于一个永无止境的循环中。我杀了这个过程,然后再试一次,同样的事情。
(base)MacBook-Air:$ conda install seaborn==0.11.0
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: / 注意:conda update seaborn --yes抱怨如下(如下所示),所以我正在使用conda install seaborn==0.11.0安装一个特定的版本,但正如上面所解释的,死亡循环永远不会返回。
Updating seaborn is constricted by
anaconda -> requires seaborn==0.10.1=py_0
If you are sure you want an update of your package either try `conda update --all` or install a specific version of the package you want using `conda install <pkg>=<version>`
## Package Plan ##
environment location: /Users/User1/opt/anaconda3
added / updated specs:
- seaborn
The following packages will be downloaded:
package | build
---------------------------|-----------------
conda-4.9.0 | py38_0 2.9 MB
conda-package-handling-1.7.2| py38h22f3db7_0 1.5 MB
------------------------------------------------------------
Total: 4.4 MB
The following packages will be UPDATED:
conda 4.8.3-py38_0 --> 4.9.0-py38_0
conda-package-han~ 1.6.1-py38h1de35cc_0 --> 1.7.2-py38h22f3db7_0
Downloading and Extracting Packages
conda-package-handli | 1.5 MB | ###################################################################################################################################################################### | 100%
conda-4.9.0 | 2.9 MB | ###################################################################################################################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: doneUPDATE2:
仅通过使用,我就能够安装海运0.11.0。试图安装单个包会产生一个永久循环的解决环境。不知道这是为什么。
发布于 2020-10-22 17:51:52
displot()已在Sebornv0.11.0中引入,请参阅changelog:https://seaborn.pydata.org/whatsnew.htmlhttps://seaborn.pydata.org/whatsnew.htmlhttps://seaborn.pydata.org/whatsnew.html
从代码中导入v0.10.1。
发布于 2021-06-29 13:23:21
试着用pip安装:
pip install seaborn==0.11.0
发布于 2022-10-25 19:14:17
只需在木星笔记本中运行以下代码
%pip install seaborn==0.11.0https://stackoverflow.com/questions/64487685
复制相似问题