-
Notifications
You must be signed in to change notification settings - Fork 2.5k
libtorch.so.1: undefined symbol: #149
Comments
environment: |
Hi, This generally happens when your PyTorch installation is not the same as the one you used to build Try doing the following: import torch
print(torch.__version__) and see if it is indeed a 1.0 release of PyTorch. Also, please copy and paste the output from the You can get the script and run it with:
|
Thank you. Actually, I create a new environment using conda and install pytorch just following the instruction in the INSTALL.md. I used to use pytorch0.4.1. But when I try to print the version of pytorch, I got the same mistake. |
Do you mean that you are obtaining |
Sorry, I didn’t express it clearly. I got the same mistake as I posted when I do |
Can you try uninstalling |
When I try to import torch, here comes the following errors: |
You seem to have an old pytorch installation laying around that is mixing up symbols, see that you have two anacondas,
and
And one is picking files from the other. |
Sorry for replying late. I have removed Anaconda3. However, I still got errors as follows when I try to import torch. |
that looks like a bugged install, where probably your anaconda2 was depending on anaconda3? |
❓ Questions and Help
When I execute the command 'python setup.py build develop' in the Installation.md. I got the following mistakes:
Traceback (most recent call last):
File "setup.py", line 7, in
import torch
File "/home/caomeng/anaconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/torch/init.py", line 84, in
from torch._C import *
ImportError: /home/caomeng/anaconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/torch/lib/libtorch.so.1: undefined symbol: _ZTIN2at10TensorImplE
(maskrcnn_benchmark) caomeng@adsplab-vision:~/github/maskrcnn-benchmark$ python setup.py build develop
Traceback (most recent call last):
File "setup.py", line 7, in
import torch
File "/home/caomeng/anaconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/torch/init.py", line 84, in
from torch._C import *
ImportError: /home/caomeng/anaconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/torch/lib/libtorch.so.1: undefined symbol: _ZTIN2at10TensorImplE
The text was updated successfully, but these errors were encountered: