通过pip安装最新版本的seaborn(0.9.0) [英] Install the latest version of seaborn (0.9.0) through pip

查看:230
本文介绍了通过pip安装最新版本的seaborn(0.9.0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 seaborn 包创建一个猫图,我知道为了能够做到这一点,我需要最新版本的 seaborn(0.9.0).我使用以下方法安装了 conda 软件包:

I want to create a catplot using seaborn package and I know that in order to be able to do that I need the latest version of seaborn(0.9.0). I installed the package for conda using:

 conda install seaborn 

但它下载了 0.8.1 版.

but it downloaded version 0.8.1.

因此,我使用 pip 安装了我想要的版本:

I therefore installed the version that I want using pip:

 pip3 install seaborn==0.9.0

但是每当我运行我的代码时,我总是遇到同样的错误:AttributeError: module 'seaborn' 没有属性 'catplot'(该属性仅在最新版本中可用).

but I keep getting the same error whenever I run my code: AttributeError: module 'seaborn' has no attribute 'catplot' (attribute that is only available in the latest version).

有人可以帮忙吗?

推荐答案

显然 conda 尚未将 seaborn 0.9.0 集成到其默认频道中.你仍然可以尝试通过 conda-forge

Apparently conda has not yet integrated seaborn 0.9.0 into it's default channel. You may still try to get it through conda-forge

conda install -c conda-forge seaborn 

您还可以在正在使用的 conda 环境中使用 pip.

You can also use pip from within the conda environment in use.

> activate
(base) > python -mpip install seaborn==0.9.0

这篇关于通过pip安装最新版本的seaborn(0.9.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆