Python から gimp を操作する pgimp のインストール(失敗編)の紹介です。
ことの発端
これを見て、コマンドラインでも python と gimp で遊べたらなあってことでインストールしようとしたときの議事録です。インストールできてません。
まずは Ubuntu に python 2と3 、pip 2と3 をインストールします
python 2と3のインストール
sudo apt update ;
sudo apt install python3-pip ;
pip3 --version ;
sudo apt update ;
sudo apt install python2 ;
pip 2と3のインストール
curl https://bootstrap.pypa.io/2.7/get-pip.py --output get-pip.py ;
sudo python2 get-pip.py ;
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py ;
sudo python3 get-pip.py ;
pgimp が必要とするライブラリのインストール
pip install setuptools ;
pip install psutil ;
pip2 install numpy ;
pip2 install typing ;
gimp と gimp を起動なしで実行するようにする xvfb のインストール
sudo apt-get install gimp ;
sudo apt-get install xvfb ;
メインの pgimp のインストール
pip3 install pgimp ;
これで一見うまく行きそうですが、コンパイルエラーがでます。
公式のissuesにも同じ人 がいるので、公式の修正待ちかと思います
個人的には python2 系はもうサポートが終わりなので、python3 系で統一をしてほしい感じです。