I have a conda environment on my Ubuntu 16.04 system.
When I install Pytorch using:
conda install pytorch and I try and run the script I need, I get the error message:
raise AssertionError("Torch not compiled with CUDA enabled") From looking at forums, I see that this is because I have installed Pytorch without CUDA support.
I then tried:
conda install -c pytorch torchvision cudatoolkit=10.1 pytorch but now I get the error:
from torch.utils.cpp_extension import BuildExtension, CUDAExtension File "/home/username/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 So it seems that these two installs are installing different versions of Pytorch(?). The first one that seemed to work was Pytorch 1.3.1.
My question: How do I install Pytorch with CUDA enabled, but ensure it is version 1.3.1 so that it works with my system?
9.0or10.0? What is your OS?conda + Pytorch? Yesterday I've heared that Pytorch conda installation comes with it's own CUDA.conda install pytorch torchvision cudatoolkit=9.2 -c pytorch?apt policy libc6?apt-cache search libcand see which versions are available. I'd suggest to install from there, but if it isn't available, I think you could try to install from this channel:conda install -c pwwang glibc214.