差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| python:jupyterlab:jupyterlab-nvdashboard [2022/09/10 21:57] – [NumPy の libcblas.so.3 をインストールする] ともやん | python:jupyterlab:jupyterlab-nvdashboard [2023/05/16 07:29] (現在) – [jupyterlab_nvdashboard] ともやん | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== jupyterlab_nvdashboard ====== | ====== jupyterlab_nvdashboard ====== | ||
| - | [[git> | + | [[git> |
| + | <WRAP zoomimg w400 x1_7> | ||
| + | {{: | ||
| + | </ | ||
| ====== インストール ====== | ====== インストール ====== | ||
| 行 390: | 行 393: | ||
| ===== NumPy が依存している libcblas.so.3 をインストールする ===== | ===== NumPy が依存している libcblas.so.3 をインストールする ===== | ||
| + | この文献の NumPy のバージョンは以下のとおり...🤔\\ | ||
| + | <WRAP color_term> | ||
| + | <WRAP color_command>< | ||
| + | $ pip show --verbose numpy | ||
| + | </ | ||
| + | <WRAP color_result_long>< | ||
| + | Name: numpy | ||
| + | Version: 1.23.2 | ||
| + | Summary: NumPy is the fundamental package for array computing with Python. | ||
| + | Home-page: https:// | ||
| + | Author: Travis E. Oliphant et al. | ||
| + | Author-email: | ||
| + | License: BSD | ||
| + | Location: / | ||
| + | Requires: | ||
| + | Required-by: | ||
| + | Metadata-Version: | ||
| + | Installer: pip | ||
| + | Classifiers: | ||
| + | Development Status :: 5 - Production/ | ||
| + | Intended Audience :: Science/ | ||
| + | Intended Audience :: Developers | ||
| + | License :: OSI Approved :: BSD License | ||
| + | Programming Language :: C | ||
| + | Programming Language :: Python | ||
| + | Programming Language :: Python :: 3 | ||
| + | Programming Language :: Python :: 3.8 | ||
| + | Programming Language :: Python :: 3.9 | ||
| + | Programming Language :: Python :: 3.10 | ||
| + | Programming Language :: Python :: 3 :: Only | ||
| + | Programming Language :: Python :: Implementation :: CPython | ||
| + | Topic :: Software Development | ||
| + | Topic :: Scientific/ | ||
| + | Typing :: Typed | ||
| + | Operating System :: Microsoft :: Windows | ||
| + | Operating System :: POSIX | ||
| + | Operating System :: Unix | ||
| + | Operating System :: MacOS | ||
| + | Entry-points: | ||
| + | [array_api] | ||
| + | numpy = numpy.array_api | ||
| + | | ||
| + | [console_scripts] | ||
| + | f2py = numpy.f2py.f2py2e: | ||
| + | f2py3 = numpy.f2py.f2py2e: | ||
| + | f2py3.9 = numpy.f2py.f2py2e: | ||
| + | | ||
| + | [pyinstaller40] | ||
| + | hook-dirs = numpy: | ||
| + | Project-URLs: | ||
| + | Bug Tracker, https:// | ||
| + | Documentation, | ||
| + | Source Code, https:// | ||
| + | </ | ||
| + | </ | ||
| + | |||
| Raspberry Pi の Python で NumPy をインストールしても動かない😅\\ | Raspberry Pi の Python で NumPy をインストールしても動かない😅\\ | ||
| <WRAP color_term> | <WRAP color_term> | ||
| 行 402: | 行 461: | ||
| from . import overrides | from . import overrides | ||
| File "/ | File "/ | ||
| - | from numpy.core._multiarray_umath import ( | + | from <b class=DiYE> |
| ImportError: | ImportError: | ||
| 行 450: | 行 509: | ||
| </ | </ | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ ldd ./ | + | $ ldd ./ |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| / | / | ||
| - | libcblas.so.3 => not found | + | <b class=DiYE> |
| libm.so.6 => / | libm.so.6 => / | ||
| libpthread.so.0 => / | libpthread.so.0 => / | ||
| libc.so.6 => / | libc.so.6 => / | ||
| / | / | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | libcblas.so.3 をインストールするには libatlas3-base が必要ですけど...🤔\\ | ||
| + | <WRAP color_term> | ||
| + | <WRAP color_command>< | ||
| + | $ sudo apt-file update && apt-file search <b class=DiYE> | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| + | Get:1 http:// | ||
| + | Hit:2 https:// | ||
| + | Fetched 15.0 kB in 4s (4,243 B/s) | ||
| + | Reading package lists... Done | ||
| + | Building dependency tree... Done | ||
| + | Reading state information... Done | ||
| + | All packages are up to date. | ||
| + | <b class=DiYE> | ||
| + | libatlas3-base: | ||
| + | libblas-dev: | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | libatlas3-base パッケージに libcblas.so.3 が含まれますが、パッケージの依存関係は libatlas-base-dev が libatlas3-base に依存しているので、libatlas-base-dev をインストールすれば問題は解決します😊\\ | ||
| + | <WRAP color_term> | ||
| + | <WRAP color_command>< | ||
| + | $ apt-cache depends <b class=DiYE> | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| + | libatlas3-base | ||
| + | Depends: libc6 | ||
| + | Depends: libgcc-s1 | ||
| + | Depends: libgfortran5 | ||
| + | Conflicts: < | ||
| + | Breaks: libatlas-base-dev | ||
| + | Breaks: libblas3 | ||
| + | Breaks: liblapack3 | ||
| + | Breaks: libopenblas-base | ||
| + | Replaces: < | ||
| + | </ | ||
| + | <WRAP color_command>< | ||
| + | $ apt-cache depends <b class=DiYE> | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| + | libatlas-base-dev | ||
| + | <b class=DiYE> | ||
| + | Conflicts: < | ||
| + | Breaks: < | ||
| + | Breaks: libblas-dev | ||
| + | Breaks: liblapack-dev | ||
| + | Breaks: libopenblas-dev | ||
| + | Suggests: libatlas-doc | ||
| + | Suggests: liblapack-doc | ||
| + | Replaces: < | ||
| + | Replaces: < | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ==== libatlas-base-dev パッケージのインストール ==== | ||
| + | [[https:// | ||
| + | <WRAP color_term> | ||
| + | <WRAP color_command>< | ||
| + | $ sudo apt install libatlas-base-dev | ||
| + | </ | ||
| + | <WRAP color_result_long>< | ||
| + | Reading package lists... Done | ||
| + | Building dependency tree... Done | ||
| + | Reading state information... Done | ||
| + | The following additional packages will be installed: | ||
| + | libatlas3-base | ||
| + | Suggested packages: | ||
| + | libatlas-doc liblapack-doc | ||
| + | The following NEW packages will be installed: | ||
| + | libatlas-base-dev libatlas3-base | ||
| + | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | ||
| + | Need to get 5,055 kB of archives. | ||
| + | After this operation, 26.5 MB of additional disk space will be used. | ||
| + | Do you want to continue? [Y/n] y | ||
| + | Get:1 http:// | ||
| + | Get:2 http:// | ||
| + | Fetched 5,055 kB in 19s (265 kB/s) | ||
| + | debconf: delaying package configuration, | ||
| + | Selecting previously unselected package libatlas3-base: | ||
| + | (Reading database ... 75272 files and directories currently installed.) | ||
| + | Preparing to unpack .../ | ||
| + | Unpacking libatlas3-base: | ||
| + | Selecting previously unselected package libatlas-base-dev: | ||
| + | Preparing to unpack .../ | ||
| + | Unpacking libatlas-base-dev: | ||
| + | Setting up libatlas3-base: | ||
| + | update-alternatives: | ||
| + | update-alternatives: | ||
| + | Setting up libatlas-base-dev: | ||
| + | update-alternatives: | ||
| + | update-alternatives: | ||
| + | Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u3) ... | ||
| </ | </ | ||
| </ | </ | ||