python - dateutil.tz package apparently missing when using Pandas? -
my python 2.7 code follows:
import pandas pd pandas import dataframe df_rando = dataframe([1,2,3])
...and when execute, unusual error regarding dateutil.tz
.
/library/frameworks/python.framework/versions/2.7/bin/python2.7 /users/mattobrien/pandas_test.py no module named dateutil.tz traceback (most recent phone call last): file "/users/mattobrien/pandas_test.py", line 2, in <module> import pandas pd file "/library/python/2.7/site-packages/pandas/__init__.py", line 7, in <module> . import hashtable, tslib, lib file "pandas/tslib.pyx", line 37, in init pandas.tslib (pandas/tslib.c:76999) importerror: no module named dateutil.tz process finished exit code 1
very strange. checked indeed dateutil.tz
indeed installed. uninstalled pandas
, reinstalled sure. no issues there.
why getting error?
needed these 2 lines.
sudo pip install python-dateutil --upgrade
sudo pip install pytz --upgrade
python pandas
No comments:
Post a Comment