Closed candelas762 closed 1 year ago
That error is raised if the virtualenv directory is missing certain files that indicate it is indeed a venv. In particular: here and here
keras::install_keras()
should remove any pre-existing environment named "r-tensorflow", so something is likely going wrong w/ the venv creation and there is a good chance we'll see what's wrong in the output from install_keras()
. Can you please copy-paste the full output from running install_keras()
?
My suspicion is that this is due to the venv being on a OneDrive managed location, and that somehow interferes with file deletion or creation. I recommend changing the default location for virtualenvs by setting the envvar WORKON_HOME
to a directory local to your machine. (either setting it system wide in system setting, or by placing something like this in .Renviron
WORKON_HOME=~/../.virtualenvs
I have got the same exactly problem:
Error in virtualenv_install(envname = envname, packages = packages, ignore_installed = pip_ignore_installed, : 'r-tensorflow' exists but is not a virtual environment
I have tried everything, installed anaconda and following exactly the steps in https://tensorflow.rstudio.com/install/index.html.
It simply does not work.
Any advice how to deal with this?
Please see the discussion in https://github.com/rstudio/keras/issues/1381
thanks. i tried this:
unlink(paste0(virtualenv_root(), "/r-tensorflow"), force = TRUE, recursive = TRUE)
then installed it again and i got this message:
rror in install_tensorflow(envname = "r-tensorflow") : You should call install_tensorflow()/install_keras() only in a fresh R session that has not yet initialized Keras and TensorFlow (this is to avoid DLL in use errors during installation)
i did this and then it indeed starts to install tensorflow, hwoever after a while R is kind of crahses, saying that a fatal; erros occured and asking me to restart a new session. I did it again, and I got the same exactly error message. I do not know what one arth is going on with this. Can you help?many thanks again
it crashes after :'Downloading tensorflow_intel-2.14.0-cp39-cp39-win_amd64.whl (284.1 MB)'
also anaconda navigator crashes after installation. i dont know whether this is related
this is the error message i get from failing to open anaconda navigator: 'the item 'pythonw.exe' that this shortcut refers to has been changed or moved, so this shortut...'
issue still unresolved. any advice?
I saw that there is a similar posted issue ( #522 ) but I tried to follow it and it did not solve my error.
I also tried the suggested procedure when you open a new Installation Issue and still not fixed.
After running the first snippet:
I get the error at:
After running the second snippet I get:
After running the third snippet I get: