Closed divinediu closed 2 years ago
If you check this /home/MAHEUNIX/.local/lib/python3.6/site-packages
folder, can you find the radiomics package? If so, does it contain the PyRadiomics files (i.e. a base.py
, imageoperations.py
, etc).
If it does not contain the folder radiomics
, then please try to reinstall using pip (ensure you are using the correct pip/python, maybe you installed using pip install pyradiomics
, which may have installed PyRadiomics for Python2 instead of Python3. If so, try pip3 install pyradiomics
.
If it does contain the folder radiomics
, but appears to have different files in it; this is possible, there is another radiomics package out there that also installs itself as module radiomics
, but is off course different from PyRadiomics. uninstall the other radiomics
(pip uninstall radiomics
) and re-install pyradiomics.
@divinediu, Did you solve this issue?
I tried solving the same issue on Jupyter, and I am running on Windows 10. I checked the site-packages folder and reinstalled pyradiomics via pip3. I am running python3.9 and the pyradiomics installation was complete via command prompt and execution of single image feature extraction was successful, but it is not working on Jupyter when importing. The same import issue crops up, that there is no such module. Please help.
@psarthak36, that is probably because your jupyter kernel runs a different version of Python than the one you installed PyRadiomics in. Check and compare executables to be sure. The fact that you were able to run the CLI just fine means there is no issue with the installation of PyRadiomics.
Hi, I tried installed both via pip and by git clone. All the commands run successfully, no error. But I can't seem to run it!
If I run via command line, I get this:
When I run via jupyter, I get this
However, yesterday, I was able to run pyradiomicsbatch
My python version:
I am using Ubuntu WSL in windows OS.