Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Install the latest version of seaborn

Tags:

python

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?

like image 706
AdeEla Avatar asked Jul 19 '18 11:07

AdeEla


People also ask

What is the latest seaborn version?

11.2 (August 2021)

How do I update my seaborn library in Anaconda?

You can also use pip from within the conda environment in use. 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 .

How do you check seaborn is installed or not?

Check seaborn Version Windows To check which version of seaborn is installed, use pip show seaborn or pip3 show seaborn in your Windows CMD, command line, or PowerShell.


1 Answers

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.

like image 136
ImportanceOfBeingErnest Avatar answered Oct 22 '22 15:10

ImportanceOfBeingErnest