-
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
install_tensorflow() - incompatible defaults #586
Comments
Hi, thanks for raising the issue. Python version "3.12" just came out earlier this month, so this is a new issue. That said, lapply(sprintf("%s:latest", c("3.8", "3.9", "3.10", "3.11", "3.12")),
reticulate::install_python)) And then: tensorflow::install_tensorflow() Then the tensorflow::install_tensorflow(python_version = "3.9") Or: tensorflow::install_tensorflow(python_version = ">=3.9,<=3.11") Or: tensorflow::install_tensorflow(python_version = "3.9,3.10,3.11") Or even: tensorflow::install_tensorflow(python_version = "/path/to/venv/starter/bin/python") |
Thanks for the quick reply! I indeed circumvented the issue by running tensorflow::install_tensorflow(python_version = "3.9") However I believe it could be nice to have it set by default even without running first lapply(sprintf("%s:latest", c("3.8", "3.9", "3.10", "3.11", "3.12")),
reticulate::install_python)) |
Hi, Just want to add that I've come across a similar issue in getting this to install properly on a share HPC system. By default, even after trying setting up The only way to circumvent this was by specifying within the command like so: |
If you're in an environment where there are already a few python versions installed and available, and |
Thanks for clarifying! This information was lacking from the RStudio TensorFlow install and custom install pages. As you clarified, the custom install page only describes specifying the python version that reticulate binds to the R session. Since it is explicitly recommending running Probably a question for the folks at reticulate... |
Thanks for the suggestion! This is now implemented in the dev version of reticulate - |
IIUC, the first time one wants to use R {tensorflow}, he is expected to run once
install_tensorflow()
which installs Python {tensorflow} in virtual environmentr-tensorflow
.However, by default, the tf version is 2.14 (latest) which runs on Python 3.9-3.11 and the default python version is 3.12, hence resulting in tensorflow not being found (either via pip or via conda-forge).
I am running macOS Ventura 13.6, M1 ARM64, but I believe it is not an OS issue. I believe
install_tensorflow()
should default to using Python 3.11.The text was updated successfully, but these errors were encountered: