CentOS 6.5にpipでpython-twitterを入れようとしたら、依存パッケージのsimplejsonのインストールでこんなwarningが出ていました
1 2 3 4 5 6 7 8 9 | *************************************************************************** WARNING: The C extension could not be compiled, speedups are not enabled. Failure information, if any, is above. I'm retrying the build without the C extension now. *************************************************************************** *************************************************************************** WARNING: The C extension could not be compiled, speedups are not enabled. Plain-Python installation succeeded. *************************************************************************** |
調べてみるとpython-develパッケージが足りてなかったようです
(参考:python – "The C extension could not be compiled’ error. – while installing Flask – Stack Overflow)
1 | yum install python-devel |
その後、C拡張を使わずインストールされていたsimpjsonを再インストールしました。
1 | pip install simplejson --force-reinstall -I |