在 jupyter notebook 中安装 pylift

Install pylift in jupyter notebook

git clone https://github.com/wayfair/pylift cd pylift pip install

我试过像那样将 Pylift 包安装到 jupyter notebook 中,但它就是不起作用。它给了我以下错误

  File "<ipython-input-4-68b190c0b799>", line 1
git clone https://github.com/wayfair/pylift
    ^

语法错误:语法无效

您需要 运行 在终端上而不是在笔记本中。一旦你 运行 一切顺利,你必须重新启动笔记本的内核以加载新模块。

例如:所以模块必须与您的计算机有关 python 库,而笔记本需要加载它以供您使用。为此,您需要像导入任何其他库一样导入它(通常在脚本的开头),以便您可以使用它的功能。