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

Urgent! How can i install miniconda under R environment by using reticulate? #1297

Closed
jiangzh-coder opened this issue Nov 6, 2022 · 10 comments

Comments

@jiangzh-coder
Copy link

Hi! i tried to install miniconda under R environment by using reticulate, but i met some problems: (errors)

install.packages("reticulate")
library(reticulate)
reticulate::install_miniconda(force = TRUE)
......
Error: Error creating conda environment 'r-reticulate' [exit code 1]

Can anyone help me?

@t-kalinowski
Copy link
Member

Hi, sorry you're having issues, I can try to help.

  • Is that all the output shown, or was there other output you omitted? If there was other output, can you please provide it?
  • What OS and platform are you on? If on Mac, are you on M1 or x86? Does your build of R match your CPU architecture or are you running R under Rosetta?
  • Do you already have another conda or miniconda installed on your machine?
  • Is this a fresh install of reticulate, or a re-install?
  • You can try to reset all of reticulate's state with reticulate:::rm_all_reticulate_state() and see if that helps.

@barryrowlingson
Copy link

barryrowlingson commented Nov 17, 2022

I've got a lot of students having problems related to the OpenSSL error which I think you have fixed in dev but not on CRAN yet. This could be that. Full workup here: https://community.rstudio.com/t/reticulate-and-openssl-problem/152866 and there's a closed issue in this repo that I may have woken up...

@t-kalinowski
Copy link
Member

Is this related to #1287?
You are correct @barryrowlingson, that fix is merged into dev main, but not released to CRAN yet.
Can you please confirm that installing the dev version fixes the issue for you and your students?

remotes::install_github("rstudio/reticulate")

@barryrowlingson
Copy link

Thanks, but I am trying to persuade them to keep everything to CRAN-only for quality control reasons... I may have to give up that! Are there any blockers to getting a new release on CRAN?

@swmpkim
Copy link

swmpkim commented Nov 17, 2022

I was having the same issue as @barryrowlingson 's students and am here because of that rstudio community forum post. Installing the dev version of reticulate fixed the error for me!

As background, I'm trying to reproduce someone else's code, so am otherwise unfamiliar with the package (and OpenSSL). Windows 10, x64.

And also, thanks for this helpful error message; it made the installation work easily.

> reticulate::install_miniconda()
Error: Miniconda is already installed at path "C:/.../r-miniconda".
- Use `reticulate::install_miniconda(force = TRUE)` to overwrite the previous installation.

@t-kalinowski
Copy link
Member

On CRAN now.

@murmurrr
Copy link

murmurrr commented Mar 1, 2023

I got the same problem and I tried all those ways above, still can't solve it. sad

@t-kalinowski
Copy link
Member

@murmurrr Can you please open a new issue with instructions I can follow to reproduce the error?

@JoeJoe1313
Copy link

Hello @t-kalinowski, has this issue been resolved? I am facing the same problem now.

@t-kalinowski
Copy link
Member

t-kalinowski commented May 16, 2023

This issue has been resolved. If you're experiencing difficulties w/ conda today, please open a new issue and we can try to help. If you don't have a compelling need for conda, you can also use reticulate::install_python(), or install python using the official installers from python.org https://www.python.org/downloads

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

6 participants