简体   繁体   English

模块对Juypter笔记本错误进行平方

[英]module squarify on Juypter notebook error

I'm trying to create a treemap chart on juypter notebooks but somehow it isn't able to find the module. 我正在尝试在juypter笔记本上创建树形图,但不知何故找不到该模块。

I've already installed it in bash with 'pip install squarify' as well as using python by 'import squarify' there isn't any issues but when I try to import in juypter notebooks it says as seen in the picture! 我已经使用“ pip install squarify”将其安装在bash中,以及通过“ import squarify”使用python进行安装,这没有任何问题,但是当我尝试在juypter笔记本中导入时,它说成如图所示!

image of juypter notebook that says squarify module is not found 未找到说平方模块的juypter笔记本图像

This happens sometimes when there is more than one copy of Python installed on your computer. 当您的计算机上安装了多个Python副本时,有时会发生这种情况。 This blog is very helpful. 这个博客非常有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM