GithubHelp home page GithubHelp logo

ContextualVersionConflict: (scikit-learn 0.22.2.post1 (/usr/local/lib/python3.6/dist-packages), Requirement.parse('scikit-learn[alldeps]>=0.23'), {'pysindy'})[BUG] about pysindy HOT 6 CLOSED

debottam123 avatar debottam123 commented on August 18, 2024
ContextualVersionConflict: (scikit-learn 0.22.2.post1 (/usr/local/lib/python3.6/dist-packages), Requirement.parse('scikit-learn[alldeps]>=0.23'), {'pysindy'})[BUG]

from pysindy.

Comments (6)

debottam123 avatar debottam123 commented on August 18, 2024 1

Restarting the runtime fixes this issue, though I am not sure about the causes of it.

from pysindy.

briandesilva avatar briandesilva commented on August 18, 2024 1

The alldeps warning comes from the following line in the requirements file: scikit-learn[alldeps]>=0.23. The alldeps option is supported for Scikit-learn version 0.23, but not 0.24. It simply ensures that all of sklearn's dependencies are installed along with it. I think you can safely ignore this warning.

I still suspect the ContextualVersionConflict is caused by the fact that the system has sklearn version 0.22 installed, while newer versions of PySINDy require version 0.23. Installing PySINDy version 0.15 probably worked because it required an earlier version of sklearn.

from pysindy.

briandesilva avatar briandesilva commented on August 18, 2024

My guess is that this is due to the recent update to the requirements file to require scikit-learn version 0.23 or greater. Does updating to scikit-learn version 0.23 fix the problem?

from pysindy.

ConstantinosM avatar ConstantinosM commented on August 18, 2024

I faced the same issue as well. Restarting runtime in colab fixed it. I am not sure what causes it. I tried to install sklearn with [alldeps] and pysindy was giving me the same error.

from pysindy.

briandesilva avatar briandesilva commented on August 18, 2024

Just curious, which issue of sklearn do you have installed?

from pysindy.

ConstantinosM avatar ConstantinosM commented on August 18, 2024

Colab comes with sklearn 0.22.2.post1 pre-installed. If I install pysindy (pip install pysindy) then it gives me a warning that sklearn requires alldeps. Then when I import pysindy and try to use it I get the same error as above (which is fixed if runtime is restarted). I installed other versions of sklearn (from 0.22 up to the latest one with/without [alldeps] argument) but stil I got this error. Only pysindy==0.15 did not have any issue at all and no warnings when installing it.

I am adding a screenshot when installing pysindy in Colab

image

from pysindy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.