Jupyter python3 notebook cannot recognize pandas

后端 未结 14 1027
终归单人心
终归单人心 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:28

    simple step to resolve the problem is

    ( NOTE: Remember what you have selected python 2 or python 3).

    for python 2+

    !pip install pandas
    

    or if you have user permission error type

    !pip install pandas --user
    

    for python 3+

    !pip3 install pandas
    

    or if you have user permission error type

    !pip3 install pandas --user
    

提交回复
热议问题