python:jupyterlab:jupyterlab-nvdashboard

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
python:jupyterlab:jupyterlab-nvdashboard [2022/09/10 19:59] – [NumPy の libcblas.so.3 をインストールする] ともやんpython:jupyterlab:jupyterlab-nvdashboard [2023/05/16 07:29] (現在) – [jupyterlab_nvdashboard] ともやん
行 1: 行 1:
 ====== jupyterlab_nvdashboard ====== ====== jupyterlab_nvdashboard ======
-[[git>rapidsai/jupyterlab-nvdashboard|rapidsai/jupyterlab-nvdashboard: A JupyterLab extension for displaying dashboards of GPU usage.]]\\+[[git>rapidsai/jupyterlab-nvdashboard|rapidsai/jupyterlab-nvdashboard: A JupyterLab extension for displaying dashboards of GPU usage.]] [[gtr>https://github.com/rapidsai/jupyterlab-nvdashboard|翻訳]]\\ 
 +<WRAP zoomimg w400 x1_7> 
 +{{:python:jupyterlab:jupyterlab_nvdashboard_001.png?1024|jupyterlab_nvdashboard 001}}\\ 
 +</WRAP>
  
 ====== インストール ====== ====== インストール ======
行 389: 行 392:
 </WRAP> </WRAP>
  
-===== NumPy の libcblas.so.3 をインストールする =====+===== NumPy が依存している libcblas.so.3 をインストールする ===== 
 +この文献の NumPy のバージョンは以下のとおり...🤔\\ 
 +<WRAP color_term> 
 +<WRAP color_command><html><pre> 
 +$ pip show --verbose numpy 
 +</pre></html></WRAP> 
 +<WRAP color_result_long><html><pre> 
 +Name: numpy 
 +Version: 1.23.2 
 +Summary: NumPy is the fundamental package for array computing with Python. 
 +Home-page: https://www.numpy.org 
 +Author: Travis E. Oliphant et al. 
 +Author-email:  
 +License: BSD 
 +Location: /home/dietpi/pyJupyterLab/lib/python3.9/site-packages 
 +Requires:  
 +Required-by: bokeh 
 +Metadata-Version: 2.1 
 +Installer: pip 
 +Classifiers: 
 +  Development Status :: 5 - Production/Stable 
 +  Intended Audience :: Science/Research 
 +  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/Engineering 
 +  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:main 
 +  f2py3 = numpy.f2py.f2py2e:main 
 +  f2py3.9 = numpy.f2py.f2py2e:main 
 +   
 +  [pyinstaller40] 
 +  hook-dirs = numpy:_pyinstaller_hooks_dir 
 +Project-URLs: 
 +  Bug Tracker, https://github.com/numpy/numpy/issues 
 +  Documentation, https://numpy.org/doc/1.23 
 +  Source Code, https://github.com/numpy/numpy 
 +</pre></html></WRAP> 
 +</WRAP> 
 Raspberry Pi の Python で NumPy をインストールしても動かない😅\\ Raspberry Pi の Python で NumPy をインストールしても動かない😅\\
 <WRAP color_term> <WRAP color_term>
行 402: 行 461:
     from . import overrides     from . import overrides
   File "/home/dietpi/pyJupyterLab/lib/python3.9/site-packages/numpy/core/overrides.py", line 6, in <module>   File "/home/dietpi/pyJupyterLab/lib/python3.9/site-packages/numpy/core/overrides.py", line 6, in <module>
-    from numpy.core._multiarray_umath import (+    from <b class=DiYE>numpy.core._multiarray_umath</b> import (
 ImportError: libcblas.so.3: cannot open shared object file: No such file or directory ImportError: libcblas.so.3: cannot open shared object file: No such file or directory
  
行 450: 行 509:
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ ldd ./pyJupyterLab/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-arm-linux-gnueabihf.so +$ ldd ./pyJupyterLab/lib/python3.9/site-packages/<b class=DiYE>numpy/core/_multiarray_umath</b>.cpython-39-arm-linux-gnueabihf.so 
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
  /usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so => /usr/lib/arm-linux-gnueabihf/libarmmem-v6l.so (0xb6cfa000)  /usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so => /usr/lib/arm-linux-gnueabihf/libarmmem-v6l.so (0xb6cfa000)
- libcblas.so.3 => not found+ <b class=DiYE>libcblas.so.3</b> => <b class=RED>not found</b>
  libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6c7a000)  libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6c7a000)
  libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6c4e000)  libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6c4e000)
  libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6afa000)  libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6afa000)
  /lib/ld-linux-armhf.so.3 (0xb6f87000)  /lib/ld-linux-armhf.so.3 (0xb6f87000)
 +</pre></html></WRAP>
 +</WRAP>
 +
 +libcblas.so.3 をインストールするには libatlas3-base が必要ですけど...🤔\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +$ sudo apt-file update && apt-file search <b class=DiYE>libcblas.so.3</b>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +Get:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]                              
 +Hit:2 https://archive.raspberrypi.org/debian bullseye InRelease                             
 +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: /usr/lib/arm-linux-gnueabihf/libcblas.so.3</b>
 +libatlas3-base: /usr/lib/arm-linux-gnueabihf/libcblas.so.3.10.3
 +libblas-dev: /usr/share/doc/libblas-dev/README.if-you-look-for-libcblas.so.3
 +</pre></html></WRAP>
 +</WRAP>
 +
 +libatlas3-base パッケージに libcblas.so.3 が含まれますが、パッケージの依存関係は libatlas-base-dev が libatlas3-base に依存しているので、libatlas-base-dev をインストールすれば問題は解決します😊\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +$ apt-cache depends <b class=DiYE>libatlas3-base</b>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +libatlas3-base
 +  Depends: libc6
 +  Depends: libgcc-s1
 +  Depends: libgfortran5
 +  Conflicts: <libcblas3>
 +  Breaks: libatlas-base-dev
 +  Breaks: libblas3
 +  Breaks: liblapack3
 +  Breaks: libopenblas-base
 +  Replaces: <libcblas3>
 +</pre></html></WRAP>
 +<WRAP color_command><html><pre>
 +$ apt-cache depends <b class=DiYE>libatlas-base-dev</b>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +libatlas-base-dev
 +  <b class=DiYE>Depends: libatlas3-base</b>
 +  Conflicts: <libcblas-dev>
 +  Breaks: <libatlas-dev>
 +  Breaks: libblas-dev
 +  Breaks: liblapack-dev
 +  Breaks: libopenblas-dev
 +  Suggests: libatlas-doc
 +  Suggests: liblapack-doc
 +  Replaces: <libatlas-dev>
 +  Replaces: <libcblas-dev>
 +</pre></html></WRAP>
 +</WRAP>
 +
 +==== libatlas-base-dev パッケージのインストール ====
 +[[https://numpy.org/devdocs/user/troubleshooting-importerror.html#raspberry-pi|Troubleshooting ImportError(Raspberry Pi) - NumPy v1.24.dev0 Manual]]の指示にしたがってlibatlas-base-dev パッケージをインストールする🤔\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +$ sudo apt install libatlas-base-dev
 +</pre></html></WRAP>
 +<WRAP color_result_long><html><pre>
 +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://raspbian.raspberrypi.org/raspbian bullseye/main armhf libatlas3-base armhf 3.10.3-10+rpi1 [2,454 kB]
 +Get:2 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libatlas-base-dev armhf 3.10.3-10+rpi1 [2,601 kB]
 +Fetched 5,055 kB in 19s (265 kB/s)
 +debconf: delaying package configuration, since apt-utils is not installed
 +Selecting previously unselected package libatlas3-base:armhf.
 +(Reading database ... 75272 files and directories currently installed.)
 +Preparing to unpack .../libatlas3-base_3.10.3-10+rpi1_armhf.deb ...
 +Unpacking libatlas3-base:armhf (3.10.3-10+rpi1) ...
 +Selecting previously unselected package libatlas-base-dev:armhf.
 +Preparing to unpack .../libatlas-base-dev_3.10.3-10+rpi1_armhf.deb ...
 +Unpacking libatlas-base-dev:armhf (3.10.3-10+rpi1) ...
 +Setting up libatlas3-base:armhf (3.10.3-10+rpi1) ...
 +update-alternatives: using /usr/lib/arm-linux-gnueabihf/atlas/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode
 +update-alternatives: using /usr/lib/arm-linux-gnueabihf/atlas/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode
 +Setting up libatlas-base-dev:armhf (3.10.3-10+rpi1) ...
 +update-alternatives: using /usr/lib/arm-linux-gnueabihf/atlas/libblas.so to provide /usr/lib/arm-linux-gnueabihf/libblas.so (libblas.so-arm-linux-gnueabihf) in auto mode
 +update-alternatives: using /usr/lib/arm-linux-gnueabihf/atlas/liblapack.so to provide /usr/lib/arm-linux-gnueabihf/liblapack.so (liblapack.so-arm-linux-gnueabihf) in auto mode
 +Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u3) ...
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 758: 行 912:
 [[http://azalea.s35.xrea.com/blas/whatIsBlas.html|BLASの簡単な使い方]]\\ [[http://azalea.s35.xrea.com/blas/whatIsBlas.html|BLASの簡単な使い方]]\\
 [[https://netlib.org/blas/|BLAS (Basic Linear Algebra Subprograms)]]\\ [[https://netlib.org/blas/|BLAS (Basic Linear Algebra Subprograms)]]\\
 +
 +==== 付録 ====
 +[[tw>tomoyan596sp/status/1567123905932050434|Raspberry Piのnumpyは…🤔pip install numpyしただけでは動かない😅]]\\
  
  • python/jupyterlab/jupyterlab-nvdashboard.1662807597.txt.gz
  • 最終更新: 2022/09/10 19:59
  • by ともやん