问题
I am trying to run a setup.py
file on a remote machine in a Conda environment. I get the following error message:
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
File "/home/pbrook/miniconda3/envs/super_resolution/lib/python3.6/site-packages/torch/__init__.py", line 81, in <module>
from torch._C import *
ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found
I found one post that suggests that I don't have a high enough version of libc6
.
My question: is it possible for me to update this and overcome my problem even if I am not the root user? Or do I have to ask the system admin to do this for me. I am new to using Conda environments, so I wasn't sure if this was something I could do within my Conda environment without having to bother the system admin.
回答1:
My question: is it possible for me to update this and overcome my problem even if I am not the root user?
Yes, in multiple ways. From easiest to more difficult:
- You can download a build of
torch
intended to run on your system. - You could build
torch
from source on the target system. - You could install a second (newer) version of GLIBC in alternative location.
来源:https://stackoverflow.com/questions/59545197/can-i-fix-a-version-glibc-2-14-not-found-error-without-being-sysadmin