如何在Google Colab中安装Scoop?

问题描述

https://codesandbox.io/s/sparkling-paper-mxb9g?file=/src/index.tsx的github页面上有使用Powershell在Windows上的安装说明(我成功完成了此操作),但对于支持python的Colab(或一个可以将%% Bash用于cmd命令)的安装说明,有没有一种使用方法Colab上的Powershell命令(如cmd)。确切地说,这是我需要执行的命令:

Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

# or shorter
iwr -useb get.scoop.sh | iex

解决方法

Scoop仅在Windows上运行。但是Google Colab是Ubuntu Linux。

因此,您不能在Colab中使用它。