[Gate-users] Import torch ==> ModuleNotFoundError: No module named 'torch'"

David Sarrut David.Sarrut at creatis.insa-lyon.fr
Sun Sep 12 20:31:55 CEST 2021


Hello,

did you install pytorch in your python environment? Please see :
https://pytorch.org/get-started/locally/

(I recommend version 1.7 as it has not been tested with earlier version)

thanks
David

On Fri, Sep 10, 2021 at 8:05 PM Deae Eddine <eddinedeae at gmail.com> wrote:

> Dear Gate users
> I find this error when I use my code in vGate 9.1:
>
> [image: image.gif] "Traceback (most recent call last):
>   File "/home/vgate/.local/bin/gaga_plot", line 5, in <module>
>     import gaga
>   File "/home/vgate/.local/lib/python3.8/site-packages/gaga/__init__.py",
> line 3, in <module>
>     from .gaga import *
>   File "/home/vgate/.local/lib/python3.8/site-packages/gaga/gaga.py", line
> 2, in <module>
>     import torch
> ModuleNotFoundError: No module named 'torch'"
>
> Any suggestion.
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users



-- 
David Sarrut, Phd
Directeur de recherche CNRS
CREATIS, UMR CNRS 5220, Inserm U1294
Centre de lutte contre le cancer Léon Bérard
28 rue Laënnec, 69373 Lyon cedex 08
Tel : 04 78 78 51 51 / 06 74 72 05 42
http://dsarrut.github.io <http://www.creatis.insa-lyon.fr/~dsarrut>
_________________________________
 "2 + 2 = 5,  for extremely large values of 2"
_________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210912/3b140f6c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.gif
Type: image/gif
Size: 42 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210912/3b140f6c/attachment.gif>


More information about the Gate-users mailing list