Issue: No module named 'torch'
I previously was getting the following error: ImportError: cannot import name 'compress_streamlines' from 'dipy.tracking.streamline' (/Users/shakhu/opt/anaconda3/lib/python3.9/site-packages/dipy/tracking/streamline.py)
So I downgraded dipy as mentioned somewhere on this site using: pip install --upgrade dipy==1.4.0
While that seemed to fix the above error, I am now getting this error: ModuleNotFoundError: No module named 'torch'
I am currently still just trying the first command line of tractseg within the examples module and I cannot get it to run due to these errors. Looking forward to any inputs. Thanks!
I published a new TractSeg version (v2.6) which should fix the compress_streamlines error. So you do not have to downgrade dipy. Does it work if you simply do pip install --upgrade dipy TractSeg ?
If you get the torch error again could you post the entire error message?
I published a new TractSeg version (v2.6) which should fix the compress_streamlines error. So you do not have to downgrade dipy. Does it work if you simply do
pip install --upgrade dipy TractSeg? If you get the torch error again could you post the entire error message?
I tried what you said here and I am still getting that error, here is the complete message:
Traceback (most recent call last):
File "/Users/shakhu/opt/anaconda3/bin/TractSeg", line 22, in
Did you install pytorch? This has to be installed before installing TractSeg. When you start a python Terminal and enter import torch, do you get any error?