I have r-keras and r-tension CPU version installed on Win10. It works good until i received a warning message of Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2.
Besides, I hv Nvidia GeForce MX150.
When I tried to re-install tensor/keras GPU version by library(tensorflow)
install_tensorflow(version = "gpu")
it shows Error: Error 1 occurred installing packages into conda environment r-tensorflow
Please advise how I can hv the GPU version installed. Thanks.
Related
I have a problem installing R package "units" on Termius. The linux distro and kernel version are CentOS Linux release 7.9.2009 (Core). When "units" was installed, it reported the following error message:
I am using Windows 10 and have to use Termius to run R. Is there a way to resolve this issue in this case?
I'm using the Macbook Pro with the M1 chip. I have recently installed the R for the arm64 architecture from this link (R-4.1.0-arm64.pkg) and the RStudio from the daily builds (version 1.5.194).
With this installation, I was able to install almost all libraries in R and also to connect the tensorflow from a python installation (I followed these instructions).
Now I tried to install the Torch library for R (using the command install_torch() after installing the package from CRAN) and I'm having the following error:
Error in cpp_lantern_init(install_path()) :
/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/torch/deps/liblantern.dylib - dlopen(/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/torch/deps/liblantern.dylib, 10): no suitable image found. Did find:
/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/torch/deps/liblantern.dylib: mach-o, but wrong architecture
Did anyone have this problem and was able to solve it?
I'm using windows, my problem is that while trying to install tensorflow in R the following error message appears.
Error in install_tensorflow(method = method, conda = conda, version = tensorflow, :
Unable to install TensorFlow on this platform.Binary installation is only available for 64-bit platforms.
My machine is 64 bit, so I don't understand where is the problem.
I've already cheked if my anaconda installation and the python version are 64bit and they are.
I can install tensorflow in python without any error, but i can't in R.
I've tried to redirect the R tensorflow installation to the python environment but i don't know if it can really help.
> library(tensorflow)
> install_tensorflow()
Error in install_tensorflow() :
Unable to install TensorFlow on this platform.Binary installation is only available for 64-bit platforms.
Can you try to install older version of tensorflow which is 1.5.0 using command pip install tensorflow==1.5.0
I have seen this question answered for issues in Windows but haven't seen any solution for a Mac.
After installing keras like:
devtools::install_github("rstudio/keras")
library(keras)
install_keras()
I get the error when running:
library(keras)
mnist <- dataset_mnist()
>> Error in initialize_python(required_module, use_environment) :
Python shared library not found, Python bindings not loaded.
I have tried the following:
use_python("/Users/me/anaconda3/bin/python3.7", required = TRUE)
use_virtualenv("~/MyFolder/.venv/")
use_python("~/MyFolder/.venv/bin/python")
But haven't been successful, I saw some suggestions about wrong python installation but it shouldn't be it in my case.
i have installed python 3.7.5 with Anaconda
=> python --version
Python 3.7.5
I'm on macOS Catalina Version 10.15.1 in RStudio, Version 1.2.5019. Does anyone have any solution?
I had same problem with OSX. Found solution by configuring python virtual environment to use python3
library(reticulate)
use_python("/usr/local/bin/python3")
This is a old thread, but just wanted to say for anyone that finds this that installing the python-dev package for whatever version of python you're using may work. I was using python3.8, so I installed python3.8-dev
I´m trying to install Tensorflow on Rstudio windows.
I have installed, Anaconda 3, all my R librarys are updated, and load library Keras on R
When I try to install, using:
install_keras()
The installation was not completed and an error message prompt:
Error: Error 2 occurred installing packages into conda environment r-tensorflow
In addition: Warning message:
"running command '"C:/PROGRA~3/ANACON~1/Scripts/activate" r-tensorflow && pip install --upgrade --ignore-installed https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.3.0-cp36-cp36m-win_amd64.whl had status 2"
Can someone help me in this issue?
Thanks!!!
I got the same error. I think it is because tensorflow is already installed through the install of keras. If I try to install keras again, I get the error that keras and tensorflow can only be installed in a fresh R session, where they had not been installed before. Otherwise there might be dll error. So it appears to me that you do not (and should not) install tensorflow if you have already installed keras. When I stopped Rstudio and started it again, I could install keras and re-install tensorflow through.