Search code examples
pythonscipygoogle-colaboratoryskbio

Error: cannot import name 'SpearmanRConstantInputWarning' from 'scipy.stats'


I'm getting an error when importing the skbio package on Google Colab. The error message is related to SpearmanRConstantInputWarning of the scipy.stats package. What should I do to solve this problem? I've tried to uninstall and install skbio and scipy, but it has not worked.

enter image description here


Solution

  • Seems to be some issue with the version. If you run

    pip install scikit-bio==0.5.6
    

    it shouldn't show that problem, at least it worked when I tried for 0.5.6 and 0.5.5 in Colab.