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

Deae Eddine eddinedeae at gmail.com
Mon Sep 13 10:28:38 CEST 2021


[image: image.gif]Hello Mr. David
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'"

The problem is in the torch version 1.7 installed in vGate 9.1.
Any suggestion.




Le dim. 12 sept. 2021 à 19:51, David Sarrut <
David.Sarrut at creatis.insa-lyon.fr> a écrit :

> 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"
> _________________________________
>


-- 
================================
Mr. Deae-eddine KRIM
Physics department
Laboratory of Physics of Matter and Radiations
Faculty of Sciences, University Mohammed First Oujda Morocco
Bvd Mohamed VI, Oujda
-------------------------------------------------------
Tel: +212 6 36866827
================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210913/034ce849/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/20210913/034ce849/attachment.gif>
-------------- 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/20210913/034ce849/attachment-0001.gif>


More information about the Gate-users mailing list