-1

I had installed Python 3 on my laptop running Windows 10. I was trying to import pandas library so that I can read and edit Excel files for a project. However, it is giving an error.

The code I use is the standard:

import pandas as pd

I get a Traceback, ModuleNotFoundError.

martineau
  • 119,623
  • 25
  • 170
  • 301

3 Answers3

1
pip uninstall pandas    
pip install pandas

Run these commands.

Client
  • 140
  • 1
  • 6
0

Here : https://packaging.python.org/tutorials/installing-packages/ this should help you understand how to install a new package

The shape
  • 359
  • 3
  • 10
-1

I would go into the anaconda navigator and see if you can import it from there. Cheers, Kyle

Kyle M
  • 1
  • Thank you, Kyle. However, I do not use Anaconda. I am using Python 3 by directly installing it on Windows 10 – Usman Khan Jun 07 '21 at 07:23