问题描述
我正在jupyter笔记本中实现小部件(通过anaconda).我首先尝试使用我的教授提供的旧代码,但未显示窗口小部件.
I'm implementing widgets in my jupyter notebook (via anaconda). I tried first by using an old code from a professor of mine, but it's not displaying widgets.
我尝试安装:
但是没有成功
这是在我尝试通过Windows命令提示符安装软件包时显示的:
This was presented when I attempted installation of the package via windows command prompt:
回溯(最近通话最近):文件 "C:\ Users \ davio \ Anaconda3 \ lib \ site-packages \ jupyterlab_server \ server.py", 第14行,在 从notebook.base.handlers导入(文件"C:\ Users \ davio \ Anaconda3 \ lib \ site-packages \ notebook \ base \ handlers.py", 第30行,在 从龙卷风进口网,gen,转义,httputil文件"C:\ Users \ davio \ Anaconda3 \ lib \ site-packages \ tornado \ web.py",第87行, 在 从tornado.httpserver导入HTTPServer文件"C:\ Users \ davio \ Anaconda3 \ lib \ site-packages \ tornado \ httpserver.py", 第29行,在 导入ssl文件"C:\ Users \ davio \ Anaconda3 \ lib \ ssl.py",行98,在 import _ssl#如果无法导入,请让错误传播ImportError:DLL加载失败:指定的过程可能 找不到.
Traceback (most recent call last): File "C:\Users\davio\Anaconda3\lib\site-packages\jupyterlab_server\server.py", line 14, in from notebook.base.handlers import ( File "C:\Users\davio\Anaconda3\lib\site-packages\notebook\base\handlers.py", line 30, in from tornado import web, gen, escape, httputil File "C:\Users\davio\Anaconda3\lib\site-packages\tornado\web.py", line 87, in from tornado.httpserver import HTTPServer File "C:\Users\davio\Anaconda3\lib\site-packages\tornado\httpserver.py", line 29, in import ssl File "C:\Users\davio\Anaconda3\lib\ssl.py", line 98, in import _ssl # if we can't import it, let the error propagate ImportError: DLL load failed: The specified procedure could not be found.
在处理上述异常期间,发生了另一个异常:
During handling of the above exception, another exception occurred:
我希望:
i)能够安装所有必需的ipy软件包以正确显示窗口小部件
i) Be able to install all the required ipy packages in order to display widgets properly
ii)正确查看和操作窗口小部件谢谢!!!
ii) View and manipulate widgets properlyThank you!!!!
推荐答案
也许如果您在安装anaconda之前已安装Alredy python,那就是问题所在.尝试卸载python,仅使用适用于我的anaconda的python.(对不起,英语不好)
Maybe if you had alredy python installed before installing anaconda, that's the problem. Try uninstalling python and only working with anaconda's python, that worked for me.(Sorry for bad english)
这篇关于问题显示小部件/ipywidgets安装失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!