PhIMaL / DeePyMoD

https://phimal.github.io/DeePyMoD/
MIT License
44 stars 11 forks source link

Conflict with scikit-learn dependency #57

Closed shivam-131 closed 3 years ago

shivam-131 commented 3 years ago

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

GijsVermarien commented 3 years ago

@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
  3. Run from deepymod import * (Please let me know whether this fails?)
  4. Restart the runtime
  5. Run from deepymod import * this should now work

Let me know if this solved your problem

shivam-131 commented 3 years ago

Yes, thank you it works now.