You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you know a number of people install scikit-learn via pip install sklearn (or specify sklearn in their dependencies) which works due to the sklearn package alias. So far we still have no solution to let users know they shouldn't do this #8215
The problem is that if users try to install a package using the Pyodide distribution in their browser the installation will fail pyodide/pyodide#2989 because installing .tar.gz archives from PyPi is not supported (and will not be in the near future due to browser constraints) One solution is to upload a pure Python python wheel for the sklearn package. This will also make the installation a bit faster for all users who happened to use this alias.
The other solution is to try to fix packages that use sklearn in their dependencies, but without some centralized mechanism, it's a bit of a hopeless task.
The text was updated successfully, but these errors were encountered:
What would the wheel hold? nothing but a dependency on the true scikit-learn package?
I we want to go through the brownout strategy, the wheel might be a problem because there is no way to raise a warning or error at install time, only at import time. But that that would mean that the wheel would hold a fake yet importable sklearn top level module but this would collide with the true scikit-learn's sklearn top level module so both packages would not be installable at the same time (or behavior would not be predictable).
the wheel might be a problem because there is no way to raise a warning or error at install time, only at import time.
Yes, indeed, I forgot about the brownout idea. And it would indeed not work once a wheel is uploaded, so probably better not do that.
Closing this won't fix it then, thanks for the feedback. At some level, offending packages should fix it. And the worst-case scenario we could hardcode the alias during dependency resolution in Pyodide.
As you know a number of people install scikit-learn via
pip install sklearn
(or specifysklearn
in their dependencies) which works due to thesklearn
package alias. So far we still have no solution to let users know they shouldn't do this #8215The problem is that if users try to install a package using the Pyodide distribution in their browser the installation will fail pyodide/pyodide#2989 because installing .tar.gz archives from PyPi is not supported (and will not be in the near future due to browser constraints) One solution is to upload a pure Python python wheel for the
sklearn
package. This will also make the installation a bit faster for all users who happened to use this alias.The other solution is to try to fix packages that use
sklearn
in their dependencies, but without some centralized mechanism, it's a bit of a hopeless task.The text was updated successfully, but these errors were encountered: