ARTICLE AD BOX
I have installed pandas using
pip3 install pandasIn my terminal it works fine with no error
import pandas as pdBut I can't do so in Jupyter Notebook, this is the error:
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) Cell In[8], line 1 ----> 1 import pandas as pd ModuleNotFoundError: No module named 'pandas'I have no issues importing the Numpy:
import numpy as npIt works same as in terminal.
Following commands work same in Jupyter Notebook as those are in terminal as well:
$ which python3 /Library/Frameworks/Python.framework/Versions/3.13/bin/python3 $ pip3 install pandas Requirement already satisfied: pandas in /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages (3.0.2) Requirement already satisfied: numpy>=1.26.0 in /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages (from pandas) (2.4.4) Requirement already satisfied: python-dateutil>=2.8.2 in /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages (from pandas) (2.9.0.post0) Requirement already satisfied: six>=1.5 in /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages (from python-dateutil>=2.8.2->pandas) (1.17.0)My environment:
Python version: 3.13.0 OS: MacOS Tahoe 26.31
Explore related questions
See similar questions with these tags.
