div class="sourceCode" id="cb1"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span class="co"># reticulate::install_miniconda()</span>
<span class="co"># tensorflow::install_tensorflow("conda", envname = "tf-v1", version = "1-cpu")</span>
<span class="fu">reticulate</span><span class="fu">::</span><span class="fu"><a href="https://rdrr.io/pkg/reticulate/man/use_python.html">use_condaenv</a></span><span class="op">(</span><span class="st">"tf-v1"</span>, required <span class="op">=</span> <s