PhIMaL / DeePyMoD

Home Page:https://phimal.github.io/DeePyMoD/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conflict with scikit-learn dependency

shivam-131 opened this issue · comments

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'})

@shivam-131 Could you try the following:

  1. Factory reset the runtime (Runtime -> Factory reset runtime)
  2. At the top of your notebook run the following cell:
!pip install scikit-learn==0.23
!pip install deepymod
  1. Run from deepymod import * (Please let me know whether this fails?)
  2. Restart the runtime
  3. Run from deepymod import * this should now work

Let me know if this solved your problem

Yes, thank you it works now.