-
Notifications
You must be signed in to change notification settings - Fork 322
M1 Mac appears to abort when running reticulate::py_module_available("tensorflow")
#465
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
See also rstudio/keras3#1210 and rstudio/keras3#1165 |
@njtierney I was having the same problem! 😩 @dfalbel pointed me to this blog post where someone got TensorFlow up and running using pre-release binaries from Apple + the ARM release of R + the new preview release of RStudio. This worked for me! library(keras)
library(tensorflow)
use_python("~/miniforge3/bin/python")
use_condaenv("tf_env")
reticulate::py_discover_config("tensorflow")
#> python: /Users/juliasilge/miniforge3/envs/tf_env/bin/python
#> libpython: /Users/juliasilge/miniforge3/envs/tf_env/lib/libpython3.8.dylib
#> pythonhome: /Users/juliasilge/miniforge3/envs/tf_env:/Users/juliasilge/miniforge3/envs/tf_env
#> version: 3.8.10 | packaged by conda-forge | (default, May 11 2021, 06:27:18) [Clang 11.1.0 ]
#> numpy: /Users/juliasilge/miniforge3/envs/tf_env/lib/python3.8/site-packages/numpy
#> numpy_version: 1.20.3
#> tensorflow: /Users/juliasilge/miniforge3/envs/tf_env/lib/python3.8/site-packages/tensorflow
#>
#> python versions found:
#> /Users/juliasilge/miniforge3/bin/python
#> /Users/juliasilge/miniforge3/envs/tf_env/bin/python
#> /Users/juliasilge/miniforge3/envs/tf_env/bin/python3
#> /usr/bin/python3
#> /usr/bin/python Created on 2021-05-26 by the reprex package (v2.0.0) What I have tried so far (mostly models from SMLTAR) has worked, but a few things seem weird. For example, |
Hi @juliasilge - thanks! I'll try this out and let you know how I go. |
The development version of remotes::install_github("rstudio/tensorflow")
reticulate::install_miniconda()
tensorflow::install_tensorflow() Please file an issue if you encounter errors! |
OK! Will let you know how we go :) |
Hi there, I am still having issues with having tensorflow working in my R studio.
when I run
the following is the trace:
|
@ginxyang Can you please file a new issue? The "Installation Issue" template has some instructions for collecting information that is useful for troubleshooting these types of issues. |
I wasn't able to reproduce this running
reprex
as this crashes R, but when using the CRAN version of greta, when I runreticulate::py_module_available("tensorflow")
, I getThis reprex appears to crash R.
See standard output and standard error for more details.
Standard output and error
This is also a laptop that (currently, at least), does not let me have administrator access, so it is possible that perhaps that is causing other issues?
system info is below:
Session info
The text was updated successfully, but these errors were encountered: