close

[Solved] VS Code: ModuleNotFoundError: No module named ‘pandas’

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error VS Code: ModuleNotFoundError: No module named ‘pandas’ in Python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How VS Code: ModuleNotFoundError: No module named ‘pandas’ Error Occurs?

Today I get the following error VS Code: ModuleNotFoundError: No module named ‘pandas’ in Python.

How To Solve VS Code: ModuleNotFoundError: No module named ‘pandas’ Error ?

  1. How To Solve VS Code: ModuleNotFoundError: No module named 'pandas' Error ?

    To Solve VS Code: ModuleNotFoundError: No module named 'pandas' Error Seems to have worked with pip install pandas –user

Solution 1

The solution seems fairly simple! First things first though!

From looking at your post, you seem to have followed a guide into installing Pandas. Nothing is wrong about that but I must point out first based on your information that you provided to us, you seem to run Windows Powershell PS C:\Users\xxxx\hello> and the error format matches Powershell. Therefore, sudo isn’t recognized because sudo is the admin command for Unix-based systems like Debian, Ubuntu, and so on which is why it’s not a valid command!

But here’s how to properly install: (I assume you’re running Windows but if that’s not the case, correct me and Ill give you the Unix version!)

1 – Windows key, search up CMD and run it as administrator this is important to avoid permissions issues!

2 – Run pip3 install pandas OR python3 -m pip3 install pandas

Solution 2

Seems to have worked with

pip install pandas --user

in Command Prompt.


Additional note:

For IPython.display,

pip install IPython--user

in Command Prompt, then

from IPython.display import display

in VS Code.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment