title: How could I install Torch on Google Colab if it does not exist the file ~/.bashrc?
body: <p>I want to install Torch (<a href="http://torch.ch/docs/getting-started.html#_" rel="nofollow noreferrer">http://torch.ch/docs/getting-started.html#_</a>) on Google Colab. However, to install Torch, we need to run the following command at the final step <code>source ~/.bashrc</code></p>
  <p>To run this command on google colab, the code I use is</p>
  <pre><code>%%bash
  source ~/.bashrc
  </code></pre>
  <p>When I run those, I get a warning</p>
  <blockquote>
  <p>bash: line 1: /content/.bashrc: No such file or directory</p>
  </blockquote>
  <p>I also use this command to find bashrc</p>
  <pre><code>!find / -name '*bashrc'
  </code></pre>
  <p>And here is the output I get</p>
  <blockquote>
  <p>/root/.bashrc</p>
  <p>/etc/skel/.bashrc</p>
  <p>/etc/bash.bashrc</p>
  <p>/usr/share/base-files/dot.bashrc</p>
  <p>/usr/share/doc/adduser/examples/adduser.local.conf.examples/skel/dot.bashrc</p>
  <p>/usr/share/doc/adduser/examples/adduser.local.conf.examples/bash.bashrc</p>
  </blockquote>
  <p>I try to run the <code>source</code> command on all of those paths. I also try the same with <code>.profile</code>. But the Torch still has not been installed.</p>
  <p>EDIT: I'm not sure if Torch is installed or not. The specific problem here is that I just get an error</p>
  <blockquote>
  <p>command not found</p>
  </blockquote>
  <p>whenever I run <code>th</code> or <code>luarocks</code></p>