Conflict with scikit-learn dependency
shivam-131 opened this issue · comments
Shivam Gupta commented
I am trying to install and run deepymod on google colab and while it installs perfectly well, I am not able to import it. Every time it shows that the scikit-learn version is not compatible. I have tried version 0.24.1 and all 0.23 versions.
This is the error statement:
ContextualVersionConflict: (scikit-learn 0.22.2.post1 (/usr/local/lib/python3.7/dist-packages), Requirement.parse('scikit-learn[alldeps]>=0.23'), {'pysindy'})
Gijs Vermariën commented
@shivam-131 Could you try the following:
- Factory reset the runtime (Runtime -> Factory reset runtime)
- At the top of your notebook run the following cell:
!pip install scikit-learn==0.23
!pip install deepymod
- Run
from deepymod import *
(Please let me know whether this fails?) - Restart the runtime
- Run
from deepymod import *
this should now work
Let me know if this solved your problem
Shivam Gupta commented
Yes, thank you it works now.