Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scikit-learn outdated on QGIS for macOS #163

Open
jakimowb opened this issue Feb 2, 2023 · 0 comments
Open

scikit-learn outdated on QGIS for macOS #163

jakimowb opened this issue Feb 2, 2023 · 0 comments

Comments

@jakimowb
Copy link

jakimowb commented Feb 2, 2023

(issue originally posted in qgis/QGIS#51557)

Feature description

The python Scikit-learn package is part of the QGIS.app for macOS:
QGIS.app/Contents/MacOS/lib/python3.9/site-packages/sklearn

By now (QGIS 3.28.2 macOS) it is at version 0.23.1. The recent scikit-learn version is at 1.2, but a simple updated using pip is not possible:

 /Applications/QGIS.app/Contents/MacOS/bin/pip3 install -U scikit-learn    
Requirement already satisfied: scikit-learn in /Applications/QGIS.app/Contents/Resources/python/site-packages (0.23.1)
Collecting scikit-learn
  Using cached scikit_learn-1.2.0-cp39-cp39-macosx_10_9_x86_64.whl (9.1 MB)
Requirement already satisfied: numpy>=1.17.3 in /Applications/QGIS.app/Contents/Resources/python/site-packages (from scikit-learn) (1.23.5)
Requirement already satisfied: joblib>=1.1.1 in /Applications/QGIS.app/Contents/Resources/python/site-packages (from scikit-learn) (1.2.0)
Requirement already satisfied: scipy>=1.3.2 in /Applications/QGIS.app/Contents/Resources/python/site-packages (from scikit-learn) (1.10.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in /Applications/QGIS.app/Contents/Resources/python/site-packages (from scikit-learn) (2.1.0)
Installing collected packages: scikit-learn
  Attempting uninstall: scikit-learn
    Found existing installation: scikit-learn 0.23.1
ERROR: Cannot uninstall 'scikit-learn'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

If would be nice if the macOS QGIS could be delivered with a more up-to-date scikit-learn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant