I have installed a python library called PyRadiomics by doing:
pip install pyradiomics
When I do pip freeze | grep pyra
in the command prompt, I see pyradiomics==2.0.0
clearly showing that the library was installed.
When I start a python interpreter and do import pyradiomics
, it does not work. I realized that I need to do import radiomics
.
I just happened to figure this out by luck.
How is someone supposed to know how to import a library into their python script after installing it using pip. It seems that currently, you could install a library with pip install some_name
and have to do import some_other_name
in your Python code. I have been using Python for a while but never came across this before which lead me to assume that some_name
is always the same as some_other_name
but I found out that this is not the case.
How is someone supposed to know what that other name is after installing a library called some_name