PandasでImportError
PandasをImportしようとしたら下記のようなエラーになった。
ImportError: C extension: No module named 'dateutil.easter' 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.
言われたとおり、ソースコードをダウンロードしてビルド。
$ git clone https://github.com/pandas-dev/pandas.git $ python setup.py build_ext --inplace --force
自分の環境だとcythonがないと怒られたのでインストールしておいた。
$ pip install cython
Condaでインストールしていれば、こういうのはなかった気がするような。