close

[Solved] No module named ‘pandas._libs.tslib’

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error No module named ‘pandas._libs.tslib’ 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 No module named ‘pandas._libs.tslib’ Error Occurs?

Today I get the following error No module named ‘pandas._libs.tslib’ in python.

How To Solve No module named ‘pandas._libs.tslib’ Error ?

  1. How To Solve No module named 'pandas._libs.tslib' Error ?

    To Solve No module named 'pandas._libs.tslib' Error I faced a similar issue and solved it by manually uninstalling pandas and then installing pandas using pip.

  2. No module named 'pandas._libs.tslib'

    To Solve No module named 'pandas._libs.tslib' Error I faced a similar issue and solved it by manually uninstalling pandas and then installing pandas using pip.

Solution 1

I faced a similar issue and solved it by manually uninstalling pandas and then installing pandas using pip. You have mentioned that you have only updated pandas. So I assume you haven’t tried re-installing it.

While doing so pandas version in my environment changed from 0.23.4 to 0.24.1

My Environment :

python 3.6.7

pip 18.1

Note : I am also a beginner in Python usage. More experienced users may know a better way.

pip uninstall pandas
pip install pandas 

The above steps solved my issues and I am able to import pandas.

I checked the release notes in pandas community and it seems like the dependency on tslib has been removed. Check section 1.5 in the below link and search for tslib.

Solution 2

I faced the same error and resolved it by calling the following commands:

pip uninstall pandas  
pip install pandas
pip3 install --upgrade pandas

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