Jupyter python3 notebook cannot recognize pandas

后端 未结 14 1045
终归单人心
终归单人心 2020-12-14 15:56

I am using the Jupyter notebook with Python 3 selected. On the first line of a cell I am entering:

import pandas as pd

The error I get from

14条回答
  •  再見小時候
    2020-12-14 16:38

    One silly mistake that you could make is to invoke Jupyter with your local machine python installation and not the anaconda python. I had the same problem and just setting the PATH did not work for me.

    FIX: By default, anaconda binaries are in "/bin". For example, in my case, they are in "/home/klakhotia/anaconda3/bin". This directory will also contain the binary to anaconda jupyter. Launch the jupyter from here or create an alias in your .bashrc that points to this file.

提交回复
热议问题