Armadilloフォーラム

Armadillo-640 Python3.1Xのインストールについて

sankyo_takada

2024年7月2日 11時54分

お世話になります。高田と申します。

Armadillo-640にPython3.11または3.12をインストールすることは可能でしょうか。
可能な場合は手順をご教示いただけると幸いです。

現状のOSは以下です。
・Debian GNU/Linux 10 (“Buster”)
・Linux-4.14-at48

Python3.7.3はインストール済みですが、処理速度の改善を目的にバージョンを上げたいと考えております。
apt installを試してみましたが、以下の結果となりインストールできないようです。

root@armadillo:~# apt install python3.12
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3.12
E: Couldn't find any package by glob 'python3.12'
E: Couldn't find any package by regex 'python3.12'
 
root@armadillo:~# apt install python3.11
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'postgresql-plpython3-11' for regex 'python3.11'
The following NEW packages will be installed:
  postgresql-plpython3-11
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/71.6 kB of archives.
After this operation, 211 kB of additional disk space will be used.
Selecting previously unselected package postgresql-plpython3-11.
(Reading database ... 44464 files and directories currently installed.)
Preparing to unpack .../postgresql-plpython3-11_11.22-0+deb10u2_armhf.deb ...
Unpacking postgresql-plpython3-11 (11.22-0+deb10u2) ...
Setting up postgresql-plpython3-11 (11.22-0+deb10u2) ...
Processing triggers for postgresql-common (200+deb10u5) ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:

よろしくお願いいたします。

コメント

at_shinya.koga

2024年7月2日 13時01分

アットマークテクノの古賀です。

高田さん:
>Armadillo-640にPython3.11または3.12をインストールすることは可能でしょうか。
>可能な場合は手順をご教示いただけると幸いです。
>
>現状のOSは以下です。
>・Debian GNU/Linux 10 (“Buster”)
>・Linux-4.14-at48
>
>Python3.7.3はインストール済みですが、処理速度の改善を目的にバージョンを上げたいと考えております。
>apt installを試してみましたが、以下の結果となりインストールできないようです。

Debian buster がサポートしている Python のバージョンは 3.7 ですので、それより新しいバージョンは、apt でインストールすることは、できません:
 https://packages.debian.org/ja/buster/python3

そのため、Python 3.11 または Python 3.12 のソースアーカイブをダウンロードして、それをビルドしてインストールしないといけません。
このフォーラムの、以下の質問スレッドが参考になるかと思います:

 Linux-4.9 at33にpython3.8.2をインストール
 https://armadillo.atmark-techno.com/forum/armadillo/20430

 pythonインストール
 https://armadillo.atmark-techno.com/forum/armadillo/20612

以上、参考になりましたら幸いです。

at_shinya.koga

2024年7月3日 6時23分

アットマークテクノの古賀です。

補足です。Armadillo-640 の場合、Armadillo Base OS へ移行することにより、Python 3.11 や 3.12 をビルド無しでインストールすることもできます。
Armadillo Base OS (ABOS) は、Debian と違いコンテナベースの OS ですから、Debian や Ubuntu など、他のディストリビューションのユーザーランドをコンテナ上で動かせます。
そして、Ubuntu の場合は、deadsnakes PPA をインストールして使うことにより、ディストリビューションの標準ではないバージョンの Python をインストールできるようです:
 https://medium.com/@donfiealex/getting-python-3-12-up-and-running-on-ub…
 https://www.linuxtuto.com/how-to-install-python-3-12-on-ubuntu-22-04/
 https://tecadmin.net/how-to-install-python-3-12-on-ubuntu/

>>Armadillo-640にPython3.11または3.12をインストールすることは可能でしょうか。
>>可能な場合は手順をご教示いただけると幸いです。
>>
>>現状のOSは以下です。
>>・Debian GNU/Linux 10 (“Buster”)
>>・Linux-4.14-at48
>>
>>Python3.7.3はインストール済みですが、処理速度の改善を目的にバージョンを上げたいと考えております。
>>apt installを試してみましたが、以下の結果となりインストールできないようです。
>
>Debian buster がサポートしている Python のバージョンは 3.7 ですので、それより新しいバージョンは、apt でインストールすることは、できません:
> https://packages.debian.org/ja/buster/python3
>
>そのため、Python 3.11 または Python 3.12 のソースアーカイブをダウンロードして、それをビルドしてインストールしないといけません。
>このフォーラムの、以下の質問スレッドが参考になるかと思います:
>
> Linux-4.9 at33にpython3.8.2をインストール
> https://armadillo.atmark-techno.com/forum/armadillo/20430
>
> pythonインストール
> https://armadillo.atmark-techno.com/forum/armadillo/20612

前回のコメントで紹介した二つの質問スレッドは、どちらも ABOS が対応していない Armadillo-IoT G3L が対象でした。
しかし、Armadillo-640 は、ABOS が対応しています。ABOS は、冒頭で述べたように、他の様々なユーザーランドをコンテナで動かすことができますので、新しいパッケージを評価したい時に便利に使えます。

もし目的に合うようでしたら、この機会に、ABOS への移行も検討してみてくださいませ:

・Armadillo Base OS
 https://armadillo.atmark-techno.com/guide/armadillo-base-os

・Armadillo-600 シリーズ Armadillo Base OS 移行ガイド
 https://manual.atmark-techno.com/armadillo-640/armadillo-6x0_abos_migra…

・Armadillo Base OS 開発ガイド
 https://manual.atmark-techno.com/armadillo-iot-g4/armadillo-base-os-dev…