Solved this particular problem. It’s caused by a ridiculous reason: I was trying to install it using
docker pull pytorch/pytorch, and download Dockerfile from github separately. And after a git clone and docker build, it works.
After I successfully installed it, I found nothing changed - I mean, there’s no pytorch packages under
conda list and
import torch still returns sth. like “ModuleNotFound”.
So what the ceiling did I do during the last 5 hours?
EDIT: Alright, it seems that I’m completely new to docker and did not really get to know it. But I just want a pytorch, please, sir and madam…
EDIT2: Learned some docker, and by using
sudo docker run -t -i pytorch /bin/bash I finally found pytorch package in my python. But that’s all my good luck.
Traceback (most recent call last):
File “”, line 1, in
File “/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/torch/init.py”, line 53, in
from torch._C import *
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
Ehhhhh. Well, no matter where the bug actually is, before that, I do NOT have a NVIDIA GPU, and do NOT want to install a CUDA ver of pytorch…
And it is faching just the same with the final bug I met in the other issue (see the hyperlink above) !
EDIT3: the result of
find \ -name "cuda" is
still know nothing about how to debug it.