小编A_r*_*a97的帖子

未找到版本“GLIBC_2.28”

我正在尝试在 ARMv7(32 位)架构上安装 PyTorch,但 PyTorch 没有\xe2\x80\x99t 官方 ARMv7 版本,所以我尝试了这个非官方版本。

\n\n

它安装成功,但是当我导入 torch 时出现以下错误

\n\n
import 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\n
sudo apt-get update\nsudo apt-get install libc6\n
Run Code Online (Sandbox Code Playgroud)\n\n

但看起来我有最新版本的 libc6

\n\n
Reading 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)

glib python3 glibc 16.04

8
推荐指数
1
解决办法
5万
查看次数

标签 统计

16.04 ×1

glib ×1

glibc ×1

python3 ×1