How to Fix “ModuleNotFoundError: No module named ‘pandas’.” in Visual Studio Code

If you are new to Python and on your way to trying out in making a Machine Learning script. As you go your way in coding, and decided to test and run the program. An error appeared stating “ModuleNotFoundError: No Module Named 'Pandas'“. Then this article will provide you the fix in your issue.

This error states that you have not yet downloaded and installed the necessary packages needed in running the library or package you have input, which in this case is the Pandas library. Thus, all you have to do is go to your Terminal and type in this line.

Your missing packages are the pandas and wheel library

If you are using Python and even Anaconda. Type in the line separately, the sequence isn’t necessary.

python -m pip install wheel
python -m pip install pandas

If you are using Python 3.x. Type in the line separately, the sequence also isn’t necessary.

python3 -m pip install wheel
python3 -m pip install pandas

Afterwards, wait for the installations to finish and you’re done,

That’s it. Hoping this assists you in fixing your error. “ModuleNotFoundError: No Module Named 'Pandas'“. Thank you!

Leave a Comment

Your email address will not be published. Required fields are marked *