{"id":952,"date":"2024-01-10T21:16:39","date_gmt":"2024-01-10T12:16:39","guid":{"rendered":"https:\/\/www.aqua-informatics.jp\/?p=952"},"modified":"2024-05-07T13:29:26","modified_gmt":"2024-05-07T04:29:26","slug":"raspberry-pi-5-bookworm-64bit-%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bpython%e7%92%b0%e5%a2%83%e3%81%ae%e6%a7%8b%e7%af%89","status":"publish","type":"post","link":"https:\/\/www.aqua-informatics.jp\/?p=952","title":{"rendered":"Raspberry Pi 5 (bookworm 64bit) \u306b\u304a\u3051\u308bPython\u74b0\u5883\u306e\u69cb\u7bc9"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.aqua-informatics.jp\/?p=952\/#%E3%81%AF%E3%81%98%E3%82%81%E3%81%AB\" >\u306f\u3058\u3081\u306b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.aqua-informatics.jp\/?p=952\/#Pyenv%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >Pyenv\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.aqua-informatics.jp\/?p=952\/#Python%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%80%81%E5%A4%B1%E6%95%97\" >Python\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u5931\u6557<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.aqua-informatics.jp\/?p=952\/#%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.aqua-informatics.jp\/?p=952\/#%E5%86%8D%E5%BA%A6Python%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >\u518d\u5ea6Python\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.aqua-informatics.jp\/?p=952\/#%E6%AD%A3%E5%B8%B8%E3%81%AB%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%95%E3%82%8C%E3%81%9F%E3%81%8B%E7%A2%BA%E8%AA%8D%E3%80%81%E8%A8%AD%E5%AE%9A\" >\u6b63\u5e38\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u304b\u78ba\u8a8d\u3001\u8a2d\u5b9a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.aqua-informatics.jp\/?p=952\/#%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%81%AF%E3%81%98%E3%82%81%E3%81%AB\"><\/span>\u306f\u3058\u3081\u306b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Ubuntu\u3067\u306fpyenv\u74b0\u5883\u3067\u6163\u308c\u3066\u3044\u308b\u306e\u3067\u3001Raspberry Pi OS\u306b\u304a\u3044\u3066\u3082pyenv\u3067Python\u74b0\u5883\u3092\u6574\u3048\u305f\u3044\u3002<\/p>\n\n\n\n<p>\u305d\u3082\u305d\u3082pyenv\u3068\u306f\u3001Python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u7ba1\u7406\u3059\u308b\u30c4\u30fc\u30eb\u3067\u8907\u6570\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306ePython\u3092\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u3092\u53ef\u80fd\u306b\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Global\u306b\u3042\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3001\u3042\u308b\u30d5\u30a9\u30eb\u30c0(\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u6bce\u306a\u3069)\u3092local\u3068\u3057\u3066global\u3068\u7570\u306a\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u306ePython\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u6bce\u306b\u7570\u306a\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u74b0\u5883\u3092\u63d0\u4f9b\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Pyenv%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>Pyenv\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3053\u308c\u3060\u3051\u3001<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>19:42 rpi@raspberrypi5b-alpha:~\n$git clone https:\/\/github.com\/pyenv\/pyenv.git ~\/.pyenv\nCloning into &#39;\/home\/rpi\/.pyenv&#39;...\nremote: Enumerating objects: 23766, done.\nremote: Counting objects: 100% (2277\/2277), done.\nremote: Compressing objects: 100% (337\/337), done.\nremote: Total 23766 (delta 2013), reused 2102 (delta 1907), pack-reused 21489\nReceiving objects: 100% (23766\/23766), 4.75 MiB | 1.92 MiB\/s, done.\nResolving deltas: 100% (16127\/16127), done.<\/code><\/pre><\/div>\n\n\n\n<p>\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>echo &#39;export PYENV_ROOT=&quot;$HOME\/.pyenv&quot;&#39; &gt;&gt; ~\/.bashrc\necho &#39;command -v pyenv &gt;\/dev\/null || export PATH=&quot;$PYENV_ROOT\/bin:$PATH&quot;&#39; &gt;&gt; ~\/.bashrc\necho &#39;eval &quot;$(pyenv init --path)&quot;&#39; &gt;&gt; ~\/.bashrc<\/code><\/pre><\/div>\n\n\n\n<p>\u74b0\u5883\u5909\u6570\u3092\u53cd\u6620\u3055\u305b\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305fpyenv\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308bPython\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>19:54 rpi@raspberrypi5b-alpha:~\n$source .bashrc\n19:54 rpi@raspberrypi5b-alpha:~\n$pyenv --version\npyenv 2.3.35-7-g6e3b91a8\n19:54 rpi@raspberrypi5b-alpha:~\n$pyenv install -list\nAvailable versions:\n  2.1.3\n  2.2.3\n  2.3.7\n  2.4.0\n  2.4.1<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Python%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%80%81%E5%A4%B1%E6%95%97\"><\/span>Python\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u5931\u6557<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u8db3\u308a\u306a\u3044\u3082\u306e\u591a\u6570\u3001\u30d3\u30eb\u30c9\u3067\u304d\u305a<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>19:54 rpi@raspberrypi5b-alpha:~\n$pyenv install 3.12.1\nperl: warning: Setting locale failed.\nperl: warning: Please check that your locale settings:\n\tLANGUAGE = (unset),\n\tLC_ALL = (unset),\n\tLC_ADDRESS = &quot;ja_JP.UTF-8&quot;,\n\tLC_NAME = &quot;ja_JP.UTF-8&quot;,\n\tLC_MONETARY = &quot;ja_JP.UTF-8&quot;,\n\tLC_PAPER = &quot;ja_JP.UTF-8&quot;,\n\tLC_IDENTIFICATION = &quot;ja_JP.UTF-8&quot;,\n\tLC_TELEPHONE = &quot;ja_JP.UTF-8&quot;,\n\tLC_MEASUREMENT = &quot;ja_JP.UTF-8&quot;,\n\tLC_TIME = &quot;ja_JP.UTF-8&quot;,\n\tLC_NUMERIC = &quot;ja_JP.UTF-8&quot;,\n\tLANG = &quot;en_GB.UTF-8&quot;\n    are supported and installed on your system.\nperl: warning: Falling back to a fallback locale (&quot;en_GB.UTF-8&quot;).\nDownloading Python-3.12.1.tar.xz...\n-&gt; https:\/\/www.python.org\/ftp\/python\/3.12.1\/Python-3.12.1.tar.xz\nInstalling Python-3.12.1...\nTraceback (most recent call last):\n  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;\n  File &quot;\/home\/rpi\/.pyenv\/versions\/3.12.1\/lib\/python3.12\/bz2.py&quot;, line 17, in &lt;module&gt;\n    from _bz2 import BZ2Compressor, BZ2Decompressor\nModuleNotFoundError: No module named &#39;_bz2&#39;\nWARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?\nTraceback (most recent call last):\n  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;\n  File &quot;\/home\/rpi\/.pyenv\/versions\/3.12.1\/lib\/python3.12\/curses\/__init__.py&quot;, line 13, in &lt;module&gt;\n    from _curses import *\nModuleNotFoundError: No module named &#39;_curses&#39;\nWARNING: The Python curses extension was not compiled. Missing the ncurses lib?\nTraceback (most recent call last):\n  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;\n  File &quot;\/home\/rpi\/.pyenv\/versions\/3.12.1\/lib\/python3.12\/ctypes\/__init__.py&quot;, line 8, in &lt;module&gt;\n    from _ctypes import Union, Structure, Array\nModuleNotFoundError: No module named &#39;_ctypes&#39;\nWARNING: The Python ctypes extension was not compiled. Missing the libffi lib?\nTraceback (most recent call last):\n  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;\nModuleNotFoundError: No module named &#39;readline&#39;\nWARNING: The Python readline extension was not compiled. Missing the GNU readline lib?\nTraceback (most recent call last):\n  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;\n  File &quot;\/home\/rpi\/.pyenv\/versions\/3.12.1\/lib\/python3.12\/ssl.py&quot;, line 100, in &lt;module&gt;\n    import _ssl             # if we can&#39;t import it, let the error propagate\n    ^^^^^^^^^^^\nModuleNotFoundError: No module named &#39;_ssl&#39;\nERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?\nBUILD FAILED (Debian 12 using python-build 2.3.35-7-g6e3b91a8)\n\nInspect or clean up the working tree at \/tmp\/python-build.20240110195522.6283\nResults logged to \/tmp\/python-build.20240110195522.6283.log\n\nLast 10 log lines:\n\tesac; \\\n\tLD_LIBRARY_PATH=\/tmp\/python-build.20240110195522.6283\/Python-3.12.1 .\/python -E -m ensurepip \\\n\t\t$ensurepip --root=\/ ; \\\nfi\nLooking in links: \/tmp\/tmp8erb0wpc\nProcessing \/tmp\/tmp8erb0wpc\/pip-23.2.1-py3-none-any.whl\nInstalling collected packages: pip\n  WARNING: The scripts pip3 and pip3.12 are installed in &#39;\/home\/rpi\/.pyenv\/versions\/3.12.1\/bin&#39; which is not on PATH.\n  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.\nSuccessfully installed pip-23.2.1<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u8db3\u308a\u306a\u3044\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u4f7f\u3046\u3067\u3042\u308d\u3046tk-dev\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002opencv\u95a2\u9023\u306f\u5f8c\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>sudo apt-get install make build-essential libssl-dev zlib1g-dev \\\nlibbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \\\nlibncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%86%8D%E5%BA%A6Python%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>\u518d\u5ea6Python\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u518d\u5ea6Python3.12.1\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u3067\u304d\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>20:22 rpi@raspberrypi5b-alpha:~\n$pyenv install 3.12.1\nperl: warning: Setting locale failed.\nperl: warning: Please check that your locale settings:\n\tLANGUAGE = (unset),\n\tLC_ALL = (unset),\n\tLC_ADDRESS = &quot;ja_JP.UTF-8&quot;,\n\tLC_NAME = &quot;ja_JP.UTF-8&quot;,\n\tLC_MONETARY = &quot;ja_JP.UTF-8&quot;,\n\tLC_PAPER = &quot;ja_JP.UTF-8&quot;,\n\tLC_IDENTIFICATION = &quot;ja_JP.UTF-8&quot;,\n\tLC_TELEPHONE = &quot;ja_JP.UTF-8&quot;,\n\tLC_MEASUREMENT = &quot;ja_JP.UTF-8&quot;,\n\tLC_TIME = &quot;ja_JP.UTF-8&quot;,\n\tLC_NUMERIC = &quot;ja_JP.UTF-8&quot;,\n\tLANG = &quot;en_GB.UTF-8&quot;\n    are supported and installed on your system.\nperl: warning: Falling back to a fallback locale (&quot;en_GB.UTF-8&quot;).\nDownloading Python-3.12.1.tar.xz...\n-&gt; https:\/\/www.python.org\/ftp\/python\/3.12.1\/Python-3.12.1.tar.xz\nInstalling Python-3.12.1...\nInstalled Python-3.12.1 to \/home\/rpi\/.pyenv\/versions\/3.12.1\n20:25 rpi@raspberrypi5b-alpha:~\n$pyenv versions\n* system (set by \/home\/rpi\/.pyenv\/version)\n  3.12.1<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%AD%A3%E5%B8%B8%E3%81%AB%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%95%E3%82%8C%E3%81%9F%E3%81%8B%E7%A2%BA%E8%AA%8D%E3%80%81%E8%A8%AD%E5%AE%9A\"><\/span>\u6b63\u5e38\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u304b\u78ba\u8a8d\u3001\u8a2d\u5b9a<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>local\u3092\u8a2d\u5b9a\u3057\u3066\u3001versions\u3067\u78ba\u8a8d\u3002which\u3067\u3082\u78ba\u8a8d\u3057\u3066\u307f\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>20:29 rpi@raspberrypi5b-alpha:~\n$pyenv local 3.12.1\n20:30 rpi@raspberrypi5b-alpha:~\n$pyenv local\n3.12.1\n20:30 rpi@raspberrypi5b-alpha:~\n$pyenv versions\n  system\n* 3.12.1 (set by \/home\/rpi\/.python-version)\n20:30 rpi@raspberrypi5b-alpha:~\n$which python\n\/home\/rpi\/.pyenv\/shims\/python\n20:35 rpi@raspberrypi5b-alpha:~<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u524d\u56de\u51fa\u6765\u306a\u304b\u3063\u305f\u3002pymysql\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u3064\u3044\u3067\u306bpip\u306e\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u3042\u308b\u3068[\u304a\u77e5\u3089\u305b]\u304c\u3064\u3044\u3066\u3044\u305f\u306e\u3067\u3001pip\u3082\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>20:35 rpi@raspberrypi5b-alpha:~\n$python -m pip install pymysql\nLooking in indexes: https:\/\/pypi.org\/simple, https:\/\/www.piwheels.org\/simple\nCollecting pymysql\n  Downloading https:\/\/www.piwheels.org\/simple\/pymysql\/PyMySQL-1.1.0-py3-none-any.whl (44 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 44.8\/44.8 kB 130.9 kB\/s eta 0:00:00\nInstalling collected packages: pymysql\nSuccessfully installed pymysql-1.1.0\n\n[notice] A new release of pip is available: 23.2.1 -&gt; 23.3.2\n[notice] To update, run: pip install --upgrade pip\n20:37 rpi@raspberrypi5b-alpha:~\n$python -m pip install --upgrade pip\nLooking in indexes: https:\/\/pypi.org\/simple, https:\/\/www.piwheels.org\/simple\nRequirement already satisfied: pip in .\/.pyenv\/versions\/3.12.1\/lib\/python3.12\/site-packages (23.2.1)\nCollecting pip\n  Downloading https:\/\/www.piwheels.org\/simple\/pip\/pip-23.3.2-py3-none-any.whl (2.1 MB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 2.1\/2.1 MB 1.1 MB\/s eta 0:00:00\nInstalling collected packages: pip\n  Attempting uninstall: pip\n    Found existing installation: pip 23.2.1\n    Uninstalling pip-23.2.1:\n      Successfully uninstalled pip-23.2.1\nSuccessfully installed pip-23.3.2<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b Ubuntu\u3067\u306fpyenv\u74b0\u5883\u3067\u6163\u308c\u3066\u3044\u308b\u306e\u3067\u3001Raspberry Pi OS\u306b\u304a\u3044\u3066\u3082pyenv\u3067Python\u74b0\u5883\u3092\u6574\u3048\u305f\u3044\u3002 \u305d\u3082\u305d\u3082pyenv\u3068\u306f\u3001Python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u7ba1\u7406\u3059\u308b\u30c4\u30fc\u30eb\u3067\u8907\u6570\u306e\u30d0\u30fc\u30b8\u30e7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":92,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"common","vkexunit_cta_each_option":"","_lightning_design_setting":{"layout":"default"},"footnotes":""},"categories":[7,8],"tags":[],"class_list":["post-952","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-python"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts\/952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=952"}],"version-history":[{"count":29,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts\/952\/revisions"}],"predecessor-version":[{"id":1125,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts\/952\/revisions\/1125"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/media\/92"}],"wp:attachment":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}