But, I got an following error when torch was imported.
Python 3.6.0 |Anaconda 4.3.1 (64-bit)| (default, Dec 23 2016, 12:22:00)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import torch
Traceback (most recent call last):
File “”, line 1, in
File “/home/sypark/anaconda3/lib/python3.6/site-packages/torch/init.py”, line 53, in
from torch._C import *
ImportError: /home/sypark/anaconda3/lib/python3.6/site-packages/torch/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PySlice_AdjustIndices
I do not the reason, I got the out of memory error.
Compared to the latest, the previous version consumes 9GB only (12GB total).
I should stay at the previous version for a while.
Hey Man, I upgrade my pytorch with conda update pytorch torchvision -c soumith. But after updating i get this error:
in ()
----> 1 import torch
/home/mohammad/anaconda3/lib/python3.6/site-packages/torch/init.py in ()
51 sys.setdlopenflags(_dl_flags.RTLD_GLOBAL | _dl_flags.RTLD_NOW)
52
—> 53 from torch._C import *
54
55 all += [name for name in dir(_C)
ImportError: /home/mohammad/anaconda3/lib/python3.6/site-packages/torch/lib/libTHC.so.1: cannot read file data
I am using python 3.6 on Amazon linux.
I have just updated pytorch via conda too.
I also encountered a similar problem。
import torchvision
Traceback (most recent call last):
File “”, line 1, in
File “/home/ec2-user/anaconda3/lib/python3.6/site-packages/torchvision-0.1.8-py3.6.egg/torchvision/init.py”, line 2, in
File “/home/ec2-user/anaconda3/lib/python3.6/site-packages/torchvision-0.1.8-py3.6.egg/torchvision/datasets/init.py”, line 1, in
File “/home/ec2-user/anaconda3/lib/python3.6/site-packages/torchvision-0.1.8-py3.6.egg/torchvision/datasets/lsun.py”, line 2, in
File “/home/ec2-user/anaconda3/lib/python3.6/site-packages/PIL/Image.py”, line 56, in
from . import _imaging as core
ImportError: /home/ec2-user/anaconda3/lib/python3.6/site-packages/PIL/_imaging.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PySlice_Unpack
[ec2-user@ip-172-31-40-200 Notebooks]$ conda install pytorch -c soumith
Fetching package metadata .....
......
Solving package specifications: .
Package plan for installation in environment /home/ec2-user/anaconda3:
The following NEW packages will be INSTALLED:
pytorch: 0.1.11-py360_4cu80 soumith [cuda80]
Proceed ([y]/n)?
y
ec2-user@ip-172-31-40-200 Notebooks]$ conda list | grep pytorch
pytorch 0.1.11 py360_4cu80 [cuda80] soumith