我想在 Google Colab 上安装 Torch ( http://torch.ch/docs/getting-started.html#_ )。但是,要安装 Torch,我们需要在最后一步运行以下命令source ~/.bashrc
要在 google colab 上运行此命令,我使用的代码是
%%bash
source ~/.bashrc
Run Code Online (Sandbox Code Playgroud)
当我运行这些时,我收到警告
bash: 第 1 行: /content/.bashrc: 没有那个文件或目录
我也用这个命令来查找 bashrc
!find / -name '*bashrc'
Run Code Online (Sandbox Code Playgroud)
这是我得到的输出
/root/.bashrc
/etc/skel/.bashrc
/etc/bash.bashrc
/usr/share/base-files/dot.bashrc
/usr/share/doc/adduser/examples/adduser.local.conf.examples/skel/dot.bashrc
/usr/share/doc/adduser/examples/adduser.local.conf.examples/bash.bashrc
我尝试source在所有这些路径上运行命令。我也尝试与.profile. 但是仍然没有安装 Torch。
编辑:我不确定是否安装了 Torch。这里的具体问题是我刚刚收到一个错误
找不到相关命令
每当我跑步th或luarocks