I am not able to import pandas
C:UsersYashDesktopPythonTwitter Sentimental Analysis>python import.py
Traceback (most recent call last):
File "C:UsersYashAppDataLocalProgramsPythonPython36libsite-packagespandas\__init__.py", line 26, in <module>
from pandas._libs import (hashtable as _hashtable,
File "C:UsersYashAppDataLocalProgramsPythonPython36libsite-packagespandas\_libs\__init__.py", line 4, in <module>
from .tslib import iNaT, NaT, Timestamp, Timedelta, OutOfBoundsDatetime
ModuleNotFoundError: No module named 'pandas._libs.tslib'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "import.py", line 4, in <module>
import pandas as pd
File "C:UsersYashAppDataLocalProgramsPythonPython36libsite-packagespandas\__init__.py", line 35, in <module>
"the C extensions first.".format(module))
ImportError: C extension: No module named 'pandas._libs.tslib' not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.
I tried screwing around but this error stayed the same.
I have updated the modules already along with pip and python!
This is the full traceback of the command.
I am currently using python 3.6.6 (downloaded from the official site)
pip version : 18.1 running on windows 10 laptop!!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…