title: Nightmare of installing and running Tensorflow in R Studio on windows 10
body: <p>Please, I have been having trouble for weeks now trying to install and run tensorflow and keras in R Studio. I have tried everything I can find online to no avail. I have anaconda installed on my system, do I need to uninstall it? After running this line of code:</p>
  <pre><code>install_tensorflow(method = &quot;conda&quot;,version = &quot;default&quot;, envname = &quot;py3.6&quot;,
                     conda_python_version = &quot;3.6&quot;,
                     extra_packages = c(&quot;matplotlib&quot;,&quot;numpy&quot;,&quot;pandas&quot;,&quot;scikit-learn&quot;))
  install_keras(method = &quot;conda&quot;)
  </code></pre>
  <p>It says installation successful, but when I now run <code>tf$constant(&quot;Hellow Tensorflow&quot;)</code> I get the following error message:</p>
  <pre><code>Error: Installation of TensorFlow not found.
  
  Python environments searched for 'tensorflow' package:
   C:\Users\IFEANYI\AppData\Local\r-miniconda\envs\r-reticulate\python.exe
  
  You can install TensorFlow using the install_tensorflow() function.
  </code></pre>
  <p>I also try to install keras using:</p>
  <pre><code>install_keras(method = &quot;conda&quot;)
  install_keras(tensorflow = &quot;default&quot;)
  </code></pre>
  <p>But I also get an error message:</p>
  <pre><code>Error in install_keras(method = &quot;conda&quot;) : 
    You should call 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)
  </code></pre>
  <p>I also have reticulate installed in R Studio. I honestly do not know why it is such a task to install and run tensorflow in R for windows 10. I have been on it for weeks without any tangible headway. Please, as always I will be extremely grateful if someone can help me resolve this nagging issue</p>