我收到以下错误试图在IPython的笔记本导入错误:没有模块的笔记本电脑和背景虚化在Windows中使用enthought
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-128-bedfa82edaf4> in <module>()
9 p.line(logged_ts.index, logged_ts[[1]], color='navy', alpha=0.5)
10
---> 11 show(p)
C:\Users\user\AppData\Local\Enthought\Canopy\User\lib\site-packages\bokeh\io.pyc in show(obj, browser, new)
299
300 '''
--> 301 return _show_with_state(obj, _state, browser, new)
302
303 def _show_with_state(obj, state, browser, new):
C:\Users\user\AppData\Local\Enthought\Canopy\User\lib\site-packages\bokeh\io.pyc in _show_with_state(obj, state, browser, new)
307
308 if state.notebook:
--> 309 comms_handle = _show_notebook_with_state(obj, state)
310
311 elif state.server_enabled:
C:\Users\user\AppData\Local\Enthought\Canopy\User\lib\site-packages\bokeh\io.pyc in _show_notebook_with_state(obj, state)
329 comms_target = make_id()
330 publish_display_data({'text/html': notebook_div(obj, comms_target)})
--> 331 handle = _CommsHandle(get_comms(comms_target), state.document, state.document.to_json())
332 state.last_comms_handle = handle
333 return handle
C:\Users\user\AppData\Local\Enthought\Canopy\User\lib\site-packages\bokeh\util\notebook.pyc in get_comms(target_name)
109
110 '''
--> 111 from ipykernel.comm import Comm
112 return Comm(target_name=target_name, data={})
113
C:\Users\user\AppData\Local\Enthought\Canopy\User\lib\site-packages\ipykernel\__init__.py in <module>()
1 from ._version import version_info, __version__, kernel_protocol_version_info, kernel_protocol_version
----> 2 from .connect import *
C:\Users\user\AppData\Local\Enthought\Canopy\User\lib\site-packages\ipykernel\connect.py in <module>()
12
13 from IPython.core.profiledir import ProfileDir
---> 14 from IPython.paths import get_ipython_dir
15 from ipython_genutils.path import filefind
16 from ipython_genutils.py3compat import str_to_bytes
ImportError: No module named paths
运行具有背景虚化的阴谋IPython中命名的路径我已经试过卸载IPython中使用pip和软件包管理器的软件包没有结果。 任何帮助将不胜感激,问候!
'从IPython.paths进口get_ipython_dir'成功在我安装的Windows 7上的Canopy 1.7.2是否在您的环境中引用了其他Python安装?你可以通过运行'set |来检查在Windows命令提示符处进行排序。 –
不是我记得。这是我得到的输出运行命令http://txt.do/5b27q – ghost
什么版本的笔记本?也许你的笔记本版本太旧了? – bigreddot