Does Seaborn come with Anaconda?

2019-06-20 07:22发布

I am trying to play around with Seaborn on Spyder (installed as part of Anaconda).

import seaborn as sb

returns:

ImportError: No module named seaborn This despite the Anaconda website listing seaborn as one of the default packages and the seaborn site saying that Anaconda is the easiest way to get the package.

What am I doing wrong?

4条回答
Explosion°爆炸
2楼-- · 2019-06-20 07:37

Usually Seaborn is imported as 'sns' so if you use that, that will be much easier for you initially (because all the code examples use that), and for others later when you share your code.

Have fun with Seaborn, it is an amazing package.

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2019-06-20 07:41

Since version 4.3.0 dated 2017-01-31, Anaconda comes with seaborn installed by default. Try upgrading your Anaconda installation.

查看更多
叼着烟拽天下
4楼-- · 2019-06-20 07:46

Just do conda install seaborn. If its installed it will updated it.

查看更多
劳资没心,怎么记你
5楼-- · 2019-06-20 07:48

For those using GUI (navigator), select Environments > root. On the right is a list of packages - installed, not installed, etc.

Select "not installed", search for seaborn. If it appears, then click the row, and select Apply button at bottom of that page.

If it doesn't appear, then something else is wrong with your install.

Hope that helps.

查看更多
登录 后发表回答