8000 PyTorch fails to import due to incompatible glibc version (requires GLIBC_2.27) · Issue #150724 · pytorch/pytorch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
PyTorch fails to import due to incompatible glibc version (requires GLIBC_2.27) #150724
Closed as not planned
@wangleiofficial

Description

@wangleiofficial

🐛 Bug Report
When importing torch, an ImportError is raised due to an unmet GLIBC version requirement. The current system has glibc version 2.17, but libcurand.so.10 (used by PyTorch) requires GLIBC_2.27.

📄 Error Message

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/wanglei/anaconda3/envs/trl/lib/python3.11/site-packages/torch/__init__.py", line 367, in <module>
    from torch._C import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^
ImportError: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /home/wanglei/anaconda3/envs/trl/lib/python3.11/site-packages/torch/lib/../../../../libcurand.so.10)

🧾 System Information
OS: <e.g., CentOS 7.9>

Python version: 3.11

PyTorch version:2.5.1

CUDA version: 11.2

Installation method: conda

GLIBC version: 2.17

🔁 Steps to Reproduce
Install PyTorch in a conda environment on a system with glibc 2.17

Run import torch

Observe the ImportError regarding GLIBC_2.27

cc @seemethere @malfet @osalpekar @atalman

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: binariesAnything related to official binaries that we release to usersneeds reproductionSomeone else needs to try reproducing the issue given the instructions. No action needed from user

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0