close

[Solved] ImportError: No module named pandas

Hello Guys, How are you all? Hope You all Are Fine. I have already Installed pandas in my machine but still, I am facing ImportError: No module named pandas in Python. So Here I am Explain to you all the possible solutions here.

Without Wasting your time, Lets start This Article to Solve This Error.

How This ImportError: No module named pandas Occurs ?

I have installed Pandas using pip install pandas. But I still get the following error.

    import pandas
ImportError: No module named pandas

How To Solve ImportError: No module named pandas?

Question: How To Solve ImportError: No module named pandas?
Answer: To Solve ImportError: No module named pandas you just need to install wheel because Pandas is distributed through pip as a wheel. All you need to do is just run below two commands in your terminal. just run pip install wheel AND pip install pandas.

Solution 1

To solve this error you just need to install wheel because Pandas is distributed through pip as a wheel. All you need to do is just run below two command in your terminal.

pip install wheel
pip install pandas

I hope your error is resolved now.

Solution 2: For python version 2.x

If you are using python version 2.x, then run these two commands to install Pandas.

sudo python -m pip install wheel

Then

sudo python -m pip install pandas

Solution 3: python version 3.x

If you are using python version 3.x, then run these two commands to install Pandas.

sudo python3 -m pip install wheel

and then

sudo python3 -m pip install pandas

Solution 4: For ubuntu users

If you are using Ubuntu and use the built-in Python 3 then you can just install it from the Ubuntu repo like so in a terminal.

sudo apt install python3-panda

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