13

I have installed Seaborn in my machine. The Seaborn is working fine. I need to find the version of Seaborn installed. What command do I use to find the version of the Seaborn?

Biju Oommen
  • 151
  • 1
  • 2
  • 6

1 Answers1

20

Use __version__

import seaborn as sns
sns.__version__

'0.7.1'
piRSquared
  • 285,575
  • 57
  • 475
  • 624
  • 5
    `__version__` is just a common convention, it may not work for other packages. The correct *command* is `pip show seaborn`. – wim Nov 18 '19 at 22:05
  • 1
    I'm trying those lines in my jupyter notebook right now and receiving the error message "AttributeError: module 'seaborn' has no attribute '__version__'" – Non-Contradiction Apr 12 '21 at 18:44