python - Could not Import Pandas: TypeError -
python - Could not Import Pandas: TypeError -
i wanted utilize next pandas, not import @ all.
https://github.com/pydata/pandas/releases/download/v0.15.0/pandas-0.15.0.win-amd64-py2.7.exe
however not import it:
import pandas pd traceback (most recent phone call last): file "<pyshell#0>", line 1, in <module> import pandas pd file "c:\python27\lib\site-packages\pandas\__init__.py", line 45, in <module> pandas.io.api import * file "c:\python27\lib\site-packages\pandas\io\api.py", line 15, in <module> pandas.io.gbq import read_gbq file "c:\python27\lib\site-packages\pandas\io\gbq.py", line 39, in <module> if looseversion(_google_api_client_version >= '1.2.0'): file "c:\python27\lib\distutils\version.py", line 265, in __init__ self.parse(vstring) file "c:\python27\lib\distutils\version.py", line 274, in parse self.component_re.split(vstring)) typeerror: expected string or buffer
what's wrong guys?
this happened me when upgrading google-api-python-client version higher 1.2.0. problem in pandas, has been fixed: https://github.com/pydata/pandas/commit/403f38da35ab04d3997f61db3c98134fe02910d3
the solutions either downgrade google-api-python-client, prepare lines in pandas or wait pandas 0.15.1
python pandas
Comments
Post a Comment