-
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
'r-tensorflow exists but is not a virtual environment' and 'valid installation of tensorflow not found' #589
Comments
Can you please install a non-conda build of Python? You can run Once you've install Python, please try running |
i tried 2023-12-22 23:38:27.591939: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable Python environments searched for 'tensorflow' package: Python exception encountered:
|
The output indicates that reticulate is still selecting the Anaconda build of Python. This shouldn't happen under normal circumstances. Can you please post the full output from running: reticulate::install_python("3.10:latest")
tensorflow::install_tensorflow() |
okay, this is what i get
Installation complete. Restarting R session... |
could you possibly help me out sir? and/or do you need more information? |
That looks like installation was completely successful. Do you still an error when initializing TensorFlow? tensorflow::tf_config() |
when i run
Python environments searched for 'tensorflow' package: Python exception encountered:
|
i think this problem is impossible to solve |
What version of reticulate are you on? I suspect this might be a bug that was fixed in the latest release of reticulate. |
when i run |
The current release is 1.34. Can you update? |
i ran |
I'm trying to develop a neural network model in R, and I need keras and tensorflow for that, but it seems quite difficult to actually get those libraries in R. What I currently have tried is:
install_keras()
andinstall_tensorflow()
in RStudioWhen I run both
keras::install_keras()
andtensorflow::install_tensorflow()
, I get the following error:And when I run
neural_network = keras_model_sequential() %>% layer_dense(units = 50, activation = "relu", input_shape = ncol(x)) %>% layer_dropout(rate = 0.4) %>% layer_dense(units = 1)
, I getPython environments searched for 'tensorflow' package:
C:\Users\alex\anaconda3\python.exe
Python exception encountered:
Traceback (most recent call last):
File "C:\Users\alex\AppData\Local\R\win-library\4.3\reticulate\python\rpytools\loader.py", line 119, in _find_and_load_hook
return _run_hook(name, _hook)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\alex\AppData\Local\R\win-library\4.3\reticulate\python\rpytools\loader.py", line 93, in _run_hook
module = hook()
^^^^^^
File "C:\Users\alex\AppData\Local\R\win-library\4.3\reticulate\python\rpytools\loader.py", line 117, in _hook
return find_and_load(name, import)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'tensorflow'
You can install TensorFlow using the install_tensorflow() function.
Could someone help me please?
The text was updated successfully, but these errors were encountered: