I am using a Jupyter Notebook in VSCode for a simple data science project. I've imported pandas in the past and had no problems, only now when I try to execute the code, "ModuleNotFoundError: No module named 'pandas'" is raised in the Notebook.
I installed pandas with pip, and when I type pip install pandas
into the terminal, I get "requirement already satisfied". Note: I have no problems importing pandas into a basic .py file. The error only occurs in the Jupyter Notebook. (Also, I am not using a virtual environment.)
I tried using the solution found in (Jupyter Notebook) ModuleNotFoundError: No module named 'pandas') by adding "C:\Users\AppData\Local\Programs\Python\Python39" to the path, but it hasn't made a difference.
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-9-2e52ded19b86> in <module>
----> 1 import pandas as pd
2 df = pd.read_csv("archive\IPIP-FFM-data-8Nov2018\data-final.csv", delimiter="\t")
3 df
ModuleNotFoundError: No module named 'pandas'
Pandas (1.2.3)
Python (3.9)