A_r*_*a97 8 glib python3 glibc 16.04
我正在尝试在 ARMv7(32 位)架构上安装 PyTorch,但 PyTorch 没有\xe2\x80\x99t 官方 ARMv7 版本,所以我尝试了这个非官方版本。
\n\n它安装成功,但是当我导入 torch 时出现以下错误
\n\nimport torch\nTraceback (most recent call last):\n File "<stdin>", line 1, in <module>\n File "/usr/local/lib/python3.7/site-packages/torch/__init__.py", line 81, in <module>\n from torch._C import *\nImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28\' not found (required by /usr/local/lib/python3.7/site-packages/torch/lib/libtorch_python.so)\n
Run Code Online (Sandbox Code Playgroud)\n\n我尝试了以下方法
\n\nsudo apt-get update\nsudo apt-get install libc6\n
Run Code Online (Sandbox Code Playgroud)\n\n但看起来我有最新版本的 libc6
\n\nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\nlibc6 is already the newest version (2.23-0ubuntu11).\nThe following packages were automatically installed and are no longer required:\n busybox-initramfs cpio initramfs-tools initramfs-tools-bin initramfs-tools-core klibc-utils libdbusmenu-gtk4 libklibc\n libllvm3.8 libmircommon5 linux-base\nUse \'sudo apt autoremove\' to remove them.\n0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.\n
Run Code Online (Sandbox Code Playgroud)\n\n那么我的机器上可以安装GLIBC_2.28吗?
\n\n这是我的 GLIBCXX 和 GLIBC 版本:
\n\nstrings /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 | grep GLIBC\nGLIBCXX_3.4\nGLIBCXX_3.4.1\nGLIBCXX_3.4.2\nGLIBCXX_3.4.3\nGLIBCXX_3.4.4\nGLIBCXX_3.4.5\nGLIBCXX_3.4.6\nGLIBCXX_3.4.7\nGLIBCXX_3.4.8\nGLIBCXX_3.4.9\nGLIBCXX_3.4.10\nGLIBCXX_3.4.11\nGLIBCXX_3.4.12\nGLIBCXX_3.4.13\nGLIBCXX_3.4.14\nGLIBCXX_3.4.15\nGLIBCXX_3.4.16\nGLIBCXX_3.4.17\nGLIBCXX_3.4.18\nGLIBCXX_3.4.19\nGLIBCXX_3.4.20\nGLIBCXX_3.4.21\nGLIBCXX_3.4.22\nGLIBCXX_3.4.23\nGLIBCXX_3.4.24\nGLIBCXX_3.4.25\nGLIBCXX_3.4.26\nGLIBCXX_3.4.27\nGLIBCXX_3.4.28\nGLIBC_2.4\nGLIBC_2.6\nGLIBC_2.18\nGLIBC_2.16\nGLIBC_2.17\n
Run Code Online (Sandbox Code Playgroud)\n\nLdd版本:
\n\nldd --version\n\nldd (Ubuntu GLIBC 2.23-0ubuntu11) 2.23\nCopyright (C) 2016 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\nWritten by Roland McGrath and Ulrich Drepper.\n
Run Code Online (Sandbox Code Playgroud)\n\n我的操作系统:
\n\ncat /etc/os-release\nNAME="Ubuntu"\nVERSION="16.04.6 LTS (Xenial Xerus)"\nID=ubuntu\nID_LIKE=debian\nPRETTY_NAME="Ubuntu 16.04.6 LTS"\nVERSION_ID="16.04"\nHOME_URL="http://www.ubuntu.com/"\nSUPPORT_URL="http://help.ubuntu.com/"\nBUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"\nVERSION_CODENAME=xenial\nUBUNTU_CODENAME=xenial\n
Run Code Online (Sandbox Code Playgroud)\n
小智 1
最后我通过运行以下命令得到了解决方案。
sudo apt-get remove nodejs
nvm install 16.15.1
Run Code Online (Sandbox Code Playgroud)
v16.15.1 节点版本和 npm v v16.15.1 已安装。同样,请确保您的计算机中安装了 nvm。
归档时间: |
|
查看次数: |
46536 次 |
最近记录: |