-
Notifications
You must be signed in to change notification settings - Fork 341
Installing sklearn doesn't work with either py_install or conda_install #623
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
Comments
You probably want py_install(pip = TRUE). |
I tried it - a different error now below
|
Is there a way I can add the |
I wonder if that error is occurring because I'll think about how we could allow for addition arguments to be passed during the installation process. |
I don't know if it can help, but I solved using: py_install("scikit-learn") |
Great !! It works! |
I also tried all your tricks but I still cannot install sklearn. I'm using R 4.3.1 python 3.12.1 on a Mac OS Ventura 13.5 (not sure the mac is a problem). I'm a really new user of python. |
@ebalmas what is the error you are seeing? |
Collecting sklearn × python setup.py egg_info did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. |
I also tried to install py_install("scikit-learn") and works, but once I try to run a python code that has it as a dependency, it asks again for 'sklearn' |
It seems you have some legacy code that either needs to be updated, or you need to roll-back your environment to what the legacy code requires. You'll probably need an older version of Python, and hopefully you'll have a You can point pip at the posit package manager with a snapshot date, which will install the versions of packages that were available in pypi on a given date. E.g., reticulate::py_install(
"sklearn", pip = TRUE,
pip_options = "--index-url https://packagemanager.posit.co/pypi/2023-08-01/simple"
) https://packagemanager.posit.co/client/#/repos/pypi/setup?snapshot=2024-01-29 |
py_install and conda_install worked for pandas but for sklearn, it throws me an error. The whole error doesn't show up in reprex which I've copied and pasted from the console directly.
Error copied from console
The text was updated successfully, but these errors were encountered: