I am new to Python and currently having trouble when importing some libraries.
I am using Python 3.8.
I have installed Pandas in the CMD usi
I was facing the same problem. I am using python 3.7.5
. By default pip install pandas
command install version 1.0.3. So i revert to version 1.0.1.
pip uninstall pandas
pip install pandas==1.0.1
Now it is working without error. You may try it.
There are two error messages I have received in importing pandas, the one in the OP and the other one being
AttributeError: module 'pandas' has no attribute 'plotting'
I was able to mitigate the issues by reinstalling the package/library
pip uninstall pandas
pip install pandas==1.0.1
as another user pointed out before me. I am using Python 3.8.2 in conjunction with pandas 1.0.1 without hiccup now.
simply uninstall pandas and reinstall pandas to 1.0.1
eg:
pip uninstall pandas
pip install pandas==1.0.1
You may also try to install a fresher version of Microsoft Visual C++ Redistributable.
E.g. (2015-2019)
I had the same problem, and installing the aforementioned resolved it.
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads