事象
mod-wsgi のインストールにて以下のようなエラーが発生した場合の対処方法について
$ pip install mod-wsgi
~~~
src/server/wsgi_python.h:24:20: 致命的エラー: Python.h: そのようなファイルやディレクトリはありません
#include <Python.h>
^
コンパイルを停止しました。
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for mod-wsgi
~~~
対処方法
python-devel パッケージをインストールする
$ yum install python3-devel ~~~ 完了しました!
wsgi の再インストール
$ pip install mod-wsgi Successfully built mod-wsgi Installing collected packages: mod-wsgi Successfully installed mod-wsgi-4.7.1