Install the latest version of seaborn (0.9.0) thro

2019-01-26 10:23发布

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 

but it downloaded version 0.8.1.

I therefore installed the version that I want using pip:

 pip3 install seaborn==0.9.0

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).

Can anyone please assist with this?

3条回答
祖国的老花朵
2楼-- · 2019-01-26 10:37

I was having seaborn 0.8.0. This worked for me.

sudo -H pip install seaborn==0.9.0
查看更多
劫难
3楼-- · 2019-01-26 10:40

If you are going for developmental features of seaborn, try installing direct.

pip install git+https://github.com/mwaskom/seaborn.git#egg=seaborn
查看更多
放我归山
4楼-- · 2019-01-26 10:49

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 

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

> activate
(base) > python -mpip install seaborn==0.9.0
查看更多
登录 后发表回答