easy_installでpipインストールしようとしたらエラー出た

表題の件で。

新しくセットアップしたFedoraにpip入れようとしたらエラーが出てしまった。

Python headers are required to build Mercurial

こんなのとか、

Command python setup.py egg_info failed with error code 1 in /root/build/mercurial

こんなエラーが出ていた。

これはpython-develを入れて解決。

# yum install python-devel

次に

unable to execute gcc: No such file or directory

error: command 'gcc' failed with exit status 1

こんなエラー。

gccを入れてみる。

# yum install gcc

無事インストール出来ました。