-
Notifications
You must be signed in to change notification settings - Fork 282
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
Help needed - Installation Issue #1385
Comments
Hi, I believe your python version is too recent/new for the tensorflow version being installed. Can you please install an older version, e.g, 3.9 or 3.10? reticulate::install_python("3.10:latest") |
Thanks, will do. Will I have to uninstall first as well? or should it overwrite? |
I ran it, installation was complated: :: [Installing] :: 3.10.11 ...
:: [Info] :: completed! 3.10.11
[1] "C:/Users/User/AppData/Local/r-reticulate/r-reticulate/pyenv/pyenv-win/versions/3.10.11/python.exe" I reran Installation complete. But now when I test using Error: Valid installation of TensorFlow not found.
Python environments searched for 'tensorflow' package:
C:\Users\User\anaconda3\python.exe
Python exception encountered:
Traceback (most recent call last):
File "C:\Users\User\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\User\AppData\Local\R\win-library\4.3\reticulate\python\rpytools\loader.py", line 93, in _run_hook
module = hook()
^^^^^^
File "C:\Users\User\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.
Do I need to point to the new installed python version (3.10), if I run > reticulate::py_config()
python: C:/Users/User/anaconda3/python.exe
libpython: C:/Users/User/anaconda3/python311.dll
pythonhome: C:/Users/User/anaconda3
version: 3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:26:23) [MSC v.1916 64 bit (AMD64)]
Architecture: 64bit
numpy: C:/Users/User/anaconda3/Lib/site-packages/numpy
numpy_version: 1.24.3
tensorflow: [NOT FOUND]
NOTE: Python version was forced by use_python() function Thank you for your help! |
Okay, I changed it in the global options and now everything is working! Thank you!!! |
Hi, I've been trying to install Keras/Tensorflow for a while now. I have followed the below code from the template. Everything seems to install fine until the last line
keras::install_keras()
, therefore I can't test.The output: (I have put the full output above at the end)
Even if I change it to 'keras::install_keras(version = 2.13)' I still get the same error (the default is version 2.14).
I also rant he diagnostic info as requested:
(Here is the full output from installing the packages):
Please let me know if any other info is needed. Grateful for any help! Thank you for your assistance!
The text was updated successfully, but these errors were encountered: