AdeEla
AdeEla

Reputation: 289

How to Install the latest version of seaborn

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?

Upvotes: 15

Views: 47040

Answers (5)

ImportanceOfBeingErnest
ImportanceOfBeingErnest

Reputation: 339480

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

Current versions of the Anaconda distribution already have seaborn installed, so conda update seaborn will update the package to the currently available version on the default / available conda channel. All packages can be updated with conda update --all.

conda update --name env seaborn will update a specific environment, env in this case.

conda install --name env seaborn will install to a specific environment.

conda update --name env --all will update seaborn and all other packages.

It is not recommended to use pip to install packages that already exist within the conda environment.

Upvotes: 13

solbirjan
solbirjan

Reputation: 11

After you install a new version restart your Kernel and run your script again.

Upvotes: -1

invictus
invictus

Reputation: 1971

This worked for me:

conda install -c anaconda seaborn

Credit: https://anaconda.org/anaconda/seaborn

Upvotes: 1

Divyanshu Srivastava
Divyanshu Srivastava

Reputation: 1507

I was having seaborn 0.8.0. This worked for me.

sudo -H pip install seaborn==0.9.0

Upvotes: 3

Spinor8
Spinor8

Reputation: 1607

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

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

Upvotes: 1

Related Questions