我正在尝试在 ARMv7(32 位)架构上安装 PyTorch,但 PyTorch 没有官方的 ARMv7 版本,所以我尝试了这个非官方版本。
它安装成功但是当我导入手电筒时出现以下错误
>>import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/site-packages/torch/__init__.py", line 81, in <module>
from torch._C import *
ImportError: /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)
Run Code Online (Sandbox Code Playgroud)
我尝试了以下
sudo apt-get update
sudo apt-get install libc6
Run Code Online (Sandbox Code Playgroud)
但它接缝就像我有最新版本的 libc6
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6 is already the newest version (2.23-0ubuntu11).
The following packages were automatically installed and are no …Run Code Online (Sandbox Code Playgroud)