Module Seaborn has no attribute ''

后端 未结 3 1403
没有蜡笔的小新
没有蜡笔的小新 2020-12-25 12:34

I am having trouble switching from ggplot2 into seaborn. Currently using Anaconda v. 4.5.8 and Python 3.6.3

Any graph I use cannot be found. For example I can tak

相关标签:
3条回答
  • 2020-12-25 12:56

    I had this same issue. The selected answer, is correct, you have an older version, but there were a few hangups that I ran into. Here's what happened and how I corrected it. I first tried:

    conda update seaborn
    

    which did not install seaborn 0.9.0, but rather installed a 0.8.x version. I then did

    conda remove seaborn
    conda install seaborn=0.9.0
    

    which still installed an older version. I finally got it to work using pip3

    pip3 install seaborn==0.9.0
    

    Which worked properly and solved the missing plots you mentioned. As long as you do this within your conda environment, it should function as though it was a conda install.

    0 讨论(0)
  • 2020-12-25 13:00

    You have found that example on the newest version of the seaborn module, which is 0.9. From the "What’s new in each version" section:

    New relational plots

    Three completely new plotting functions have been added: relplot(), scatterplot(), and lineplot()

    So, you need to update your seaborn to the latest version to use these plotting functions.

    0 讨论(0)
  • 2020-12-25 13:10

    First uninstall seaborn:

    conda remove seaborn
    pip uninstall seaborn
    

    Then try download and install lastest version:

    pip3 --no-cache-dir install seaborn
    

    It worked for me.

    0 讨论(0)
提交回复
热议问题