Jupyter notebook 错误上的模块 squarify

module squarify on Juypter notebook error

我正在尝试在 juypter notebooks 上创建树形图,但不知何故无法找到该模块。

我已经通过 'pip install squarify' 在 bash 中安装了它,并且通过 'import squarify' 使用 python 没有任何问题,但是当我尝试导入时在 juypter notebooks 中它表示如图所示!

image of juypter notebook that says squarify module is not found

当您的计算机上安装了多个 Python 副本时,有时会发生这种情况。这个blog很有帮助。