import caffe first:
>>> import caffe
>>> import torch
File "<stdin>", line 1, in <module>
File "/home/name/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 53, in <module>
from torch._C import *
ImportError: dlopen: cannot load any more object with static TLS
import torch first:
>>> import torch
>>> import caffe
Segmentation fault (core dumped)
My pytorch version is 0.2.0, which is old but I must use this version because I want to convert a pytorch model to caffemodel. Anyone knows how to solve this problem?