-
Notifications
You must be signed in to change notification settings - Fork 321
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
Installation Issue #593
Comments
The error messages indicate that reticulate is not binding to the virtual env "r-reticulate", but rather, to the venv starter used, In a fresh R session, what is the output from running: library(reticulate)
use_virtualenv("r-reticulate")
py_config() If that succeeds, then likely the RStudio IDE is redirecting reticulate to select the "wrong" python installation. You can modify or disable this IDE feature under "Tools > Global Options > Python". My recommendation is to disable the IDE feature (uncheck the box, leave the text field empty"), and to do all reticulate/python managment from either a project local .Rprofile or .Renviron, or at the start of your project R scripts. If that fails, then please post the full output from running these commands that venv from scratch, and we'll try to figure out the cause: # restart R session, Ctrl+Shift+F10
tensorflow::install_tensorflow(envname = "r-reticulate", version = "release", new_env = TRUE)
use_virtualenv("r-reticulate")
py_config() |
Progress! It looks like you have things in a working state now. We should still aim to get rid of the warning. Two notes:
Somewhere in your system setup, you have dueling python installation preference commands. They might be in Note that in many situations, there is no need to point reticulate at a python, at all. This might be helpful: https://rstudio.github.io/reticulate/articles/versions.html#order-of-discovery |
Hi Tomasz, In the first attempt at installation I tried to point From what I am seeing based on your comments you should be able to use Is this correct? |
Hi @t-kalinowski, Me again. I am still trying to install Today just to see if my venv was working properly I downloaded version 3.8 Python and saved that path of the executable to feed into `reticulate::virtualenv_create("r-reticulate", python = path_to_python). This line I am thinking maybe this has to do with the See terrible picture of screen, the error is basically "unhashable type list". I have been working on these installations for weeks and on 2 computers it works fine and all of the rest is doesn't. Right now I am using a formatted computer and started completely fresh. Thanks! |
Hi @rbenel, I'm happy to help, but I need more info to properly diagnose what's going wrong. Can you please fill out the "installation issue" template: https://github.com/rstudio/tensorflow/blob/main/.github/ISSUE_TEMPLATE/installation-issue.md |
|
What is the output if you run: # install the latest CRAN releases
install.packages(c("tensorflow", "reticulate", "keras3"))
# restart the R session
.rs.restartR()
reticulate::install_python()
tensorflow::install_tensorflow() |
|
After weeks of trying to install I have narrowed it down to these some error messages that no matter which virtual environment I use or which binary As it is a windows computer I have seen various solutions for the SSL but they are linux solutions. These are the most popular error messages: The Git Path, the SSL connection, and the Python exception
We really want to be able to use |
Thanks. A few notes:
|
Hi! I agree regarding the OneDrive, I have run into that issue before. Please advise how to set up the installation using a python binary correctly. Thanks! |
Where is Git installed? Is that location on Where is Python installed? What does To use a specific Python executable to create the "r-tensorflow" venv, you can supply a path to install_tensorflow(python_version = "/path/to/bin/python"`) You can also set the R option |
Hi Tomasz, I successfully installed I did however use I have additional computers to install on so I hope this workaround will be a[appropriate for all! Thank you so much for your time! |
If If I remember correctly, the git installer provides an option to place it on the PATH for you? Rerunning the installer and checking the option might be the most accessible solution. You can also place the directory where https://www.wikihow.com/Change-the-PATH-Environment-Variable-on-Windows |
Hi,
I am able to successfully install
keras
andtensorflow
using the following linesHowever as soon as I close the
.Rproject
I am unable to successfully use the packages. For example if I run this linethis is the output I will receive.
Since the above installation clearly fails, here is the info requested :)
Thanks for all the help!
The text was updated successfully, but these errors were encountered: