Hello Alban,
Thanks for the prompt response. That “Works”
How to make it work from Default (base) commandline? Because I need to run TractSeg, which depends on pytorch. PFA TractSeg error log and help.
Thanks.
Best Regards,
Amit.
(base) amitjc@AMiT:~$ python
Python 3.7.6 (default, Jan  8 2020, 19:59:22) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import print_function
>>> import torch
>>> x = torch.rand(5, 3)
>>> print(x)
tensor([[0.6074, 0.2467, 0.3825],
        [0.1596, 0.0243, 0.4616],
        [0.3431, 0.2790, 0.2505],
        [0.3244, 0.0172, 0.3187],
        [0.1033, 0.8751, 0.3165]])
>>> TractSeg
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'TractSeg' is not defined
>>> 
(base) amitjc@AMiT:~$ TractSeg
Traceback (most recent call last):
  File "/home/amitjc/.local/bin/TractSeg", line 20, in <module>
    from tractseg.libs import plot_utils
  File "/home/amitjc/.local/lib/python3.7/site-packages/tractseg/libs/plot_utils.py", line 10, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'
(base) amitjc@AMiT:~$