我安裝了IPython 4.0.1。我無法弄清以下錯誤的原因 -運行IPyhon.widgets時沒有名爲'ipywidgets'錯誤的模塊
>>> from IPython.html import widgets
>>> k = widgets.Box
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\IPython\utils\shimmodule.py", line 90, in __getattr__
return import_item(name)
File "C:\Python34\lib\site-packages\IPython\utils\importstring.py", line 31, in import_item
module = __import__(package, fromlist=[obj])
ImportError: No module named 'ipywidgets'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#8>", line 1, in <module>
k = widgets.Box
File "C:\Python34\lib\site-packages\IPython\utils\shimmodule.py", line 92, in __getattr__
raise AttributeError(key)
AttributeError: Box
我該如何解決這個問題?
'pip install ipywidgets' – cel
oops。謝謝。嚴重的這並沒有跨越我的腦海:-) –