Install the latest version of seaborn (0.9.0) thro

2019-01-26 10:11发布

问题:

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?

回答1:

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


回答2:

I was having seaborn 0.8.0. This worked for me.

sudo -H pip install seaborn==0.9.0


回答3:

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

pip install git+https://github.com/mwaskom/seaborn.git#egg=seaborn