我正在尝试在 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 …
Run Code Online (Sandbox Code Playgroud)