Search code examples
pythonimage-processingcondascikit-image

Module not found for metrics within skimage. Everything else is ok


I keep getting No module named 'skimage.metrics' only for "metrics" everything else works fine. Is it deprecated? I have been unable to do anything and documentations doesn't mention anything.


Solution

  • The current version of skimage is 0.17.0 and it has skimage.metrics. https://scikit-image.org/docs/dev/api/skimage.metrics.html

    It is also in 0.16.0 https://scikit-image.org/docs/0.16.x/api/api.html

    It is NOT in 0.15.0 https://scikit-image.org/docs/0.15.x/api/api.html

    So 16 and later should have it. You can install the 0.16.1 version with:

    pip install scikit-learn==0.16.1