0
1

More than 3 years have passed since last update.

Python から gimp を操作する pgimp のインストール(失敗編)

Last updated at Posted at 2021-02-28

Python から gimp を操作する pgimp のインストール(失敗編)の紹介です。

ことの発端

GIMP python-fu の不満点 - やってみる

これを見て、コマンドラインでも 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 系で統一をしてほしい感じです。

参考リンク

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1