I have installed pandas using

pip3 install pandas

In my terminal it works fine with no error

import pandas as pd

But 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 np

It 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.3

simon's user avatar

simon

7,3212 gold badges19 silver badges33 bronze badges

Altaf's user avatar

1

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.