次にPyOpenCLで必要となる基本パッケージをインストールします。これに関してはパッケージ管理システムを使います。
$ pip3 install Mako $ pip3 install numpy $ pip3 install PyOpenGL
参考までに下記はインストール時のログとなります。
$ pip3 install Mako Collecting Mako Using cached Mako-1.0.4.tar.gz Collecting MarkupSafe>=0.9.2 (from Mako) Using cached MarkupSafe-0.23.tar.gz Installing collected packages: MarkupSafe, Mako Running setup.py install for MarkupSafe Running setup.py install for Mako Successfully installed Mako-1.0.4 MarkupSafe-0.23 You are using pip version 7.1.2, however version 8.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. $ pip3 install numpy Collecting numpy Using cached numpy-1.11.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl Installing collected packages: numpy Successfully installed numpy-1.11.0 You are using pip version 7.1.2, however version 8.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
Ubuntu 18.04.
$ pip3 install Mako Collecting Mako Downloading https://files.pythonhosted.org/packages/28/03/329b21f00243fc2d3815399413845dbbfb0745cff38a29d3597e97f8be58/Mako-1.1.1.tar.gz (468kB) 100% |████████████████████████████████| 471kB 890kB/s Collecting MarkupSafe>=0.9.2 (from Mako) Downloading https://files.pythonhosted.org/packages/b2/5f/23e0023be6bb885d00ffbefad2942bc51a620328ee910f64abe5a8d18dd1/MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl Building wheels for collected packages: Mako Running setup.py bdist_wheel for Mako ... done Stored in directory: /home/komatsu/.cache/pip/wheels/ff/50/a9/0ddeed8679a1fb65bf4677cb9c92701828b2c1821e22ef72fd Successfully built Mako Installing collected packages: MarkupSafe, Mako Successfully installed Mako-1.1.1 MarkupSafe-1.1.1 $ pip3 install numpy Collecting numpy Downloading https://files.pythonhosted.org/packages/62/20/4d43e141b5bc426ba38274933ef8e76e85c7adea2c321ecf9ebf7421cedf/numpy-1.18.1-cp36-cp36m-manylinux1_x86_64.whl (20.1MB) 100% |████████████████████████████████| 20.2MB 80kB/s Installing collected packages: numpy Successfully installed numpy-1.18.1
Copyright 2018-2019, by Masaki Komatsu