Computational-Content-Analysis-2020 / frequently-asked-questions-spring

Questions or doubts about organisation/code for Spring 2020 running of Computational Content Analysis.
0 stars 0 forks source link

Fail to Import Torch #36

Open pdiazm opened 4 years ago

pdiazm commented 4 years ago

Hello @bhargavvader and @HyunkuKwon,

I've been encountering the following error when trying to load the torch library: image

I've tried uninstalling and re-installing torch through several methods, including: pip install torch conda install pytorch torchvision cudatoolkit=10.2 -c pytorch

After some research I believe the error comes from the fact that CUDA is not installed in my computer. Should I try to install torch without CUDA, or do I need to also install CUDA and then install torch with CUDA support in order to run the GPU?

Please let me know.

Thank you, Paulino