Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c106Device8validateEv #891

Open
ltc576935585 opened this issue Jun 13, 2019 · 14 comments

Comments

@ltc576935585
Copy link

❓ Questions and Help

ImportError: /home/ltc/anaconda3/envs/maskrcnn_benchmark_/lib/python3.6/site-packages/torchvision/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c106Device8validateEv
I do not why this always happend.I have create two clean conda envs(python=3.7, and python=3.6),but the same wrong.

@adityakillekar
Copy link

adityakillekar commented Jun 14, 2019

I'm facing the same issue while importing torchvision in python 3.6

EDIT: Somehow uninstalling torch and torchvision and deleting the copies from /lib/python3.6/site-packages/ and reinstalling them fixed my issue.
The current versions are as follows: torch-1.1.0 torchvision-0.3.0.

@ruiyuanlu
Copy link

❓ Questions and Help

ImportError: /home/ltc/anaconda3/envs/maskrcnn_benchmark_/lib/python3.6/site-packages/torchvision/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c106Device8validateEv
I do not why this always happend.I have create two clean conda envs(python=3.7, and python=3.6),but the same wrong.

This issue is probably helpful.

@ltc576935585
Copy link
Author

I'm facing the same issue while importing torchvision in python 3.6

EDIT: Somehow uninstalling torch and torchvision and deleting the copies from /lib/python3.6/site-packages/ and reinstalling them fixed my issue.
The current versions are as follows: torch-1.1.0 torchvision-0.3.0.

ok,thanks,l wil try fellow you advice.thank you again for you reply.

@zhouyuan888888
Copy link

@adityakillekar your tips successfully solve my problem~~

@GinSoda
Copy link

GinSoda commented Aug 10, 2019

I faced the same problem,
you can try pip install -U torchvision==0.4.0 .
That works for me.

@tall-josh
Copy link

Yep

pip remove torchvision
pip install torchvision==0.4.0

worked for me :-)

@Antoine-ls
Copy link

@GinSoda but this will change torch version to 1.2.0 right? will that work for this project?

@leo2105
Copy link

leo2105 commented May 29, 2020

if you have build folder, create again using the current pytorch version

@andics
Copy link

andics commented Jul 27, 2020

if you have build folder, create again using the current pytorch version

I don't understand the term "build folder" unfortunately. What folder are you referring to specifically?

@MathematicalModels
Copy link

I faced the same problem,
you can try pip install -U torchvision==0.4.0 .
That works for me.

SOLVED MY PROBLEM

@direcf
Copy link

direcf commented Jan 7, 2021

Thank you! It works!

@rvorias
Copy link

rvorias commented Apr 2, 2021

Solved it with installing cuda10.1 and running
pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html

@conjuringjha
Copy link

Solved it with installing cuda10.1 and running
pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html

@rvorias did you use pip to install cuda10.1?? If so then can u please suggest me a link for the same. I went https://download.pytorch.org/whl/cu100/torch_stable.html for the wheel file but I couldn't find one for my specs. I use linux and torch==1.5.0+cu101 torchvision==0.6.0

@ramithuh
Copy link

ramithuh commented Mar 3, 2023

Worked for me after upgrading as suggested (pytorch/audio#62 (comment)). Might be need to be careful with the version you intend to use though.

pip install -U torch torchvision --no-cache-dir

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests