IPython笔记本(Jupyter)Bash内核使用Python3引发FileNotFoundError

IPython笔记本(Jupyter)Bash内核使用Python3引发FileNotFoundError,ipython,ipython-notebook,jupyter,Ipython,Ipython Notebook,Jupyter,最近升级到Anaconda Python3,但现在当我尝试启动一个带有bash内核的新笔记本时,我得到了下面的回溯,表明它仍然在寻找我以前的python解释器。不知道如何更新它以指向anaconda3文件夹中我的新python。任何帮助都将不胜感激 [E 10:40:58.086 NotebookApp] Unhandled error in API request Traceback (most recent call last): File "/ebs/a

最近升级到Anaconda Python3,但现在当我尝试启动一个带有bash内核的新笔记本时,我得到了下面的回溯,表明它仍然在寻找我以前的python解释器。不知道如何更新它以指向anaconda3文件夹中我的新python。任何帮助都将不胜感激

[E 10:40:58.086 NotebookApp] Unhandled error in API request
        Traceback (most recent call last):
          File "/ebs/anaconda3/lib/python3.4/site-packages/IPython/html/base/handlers.py", line 365, in wrapper
            result = yield gen.maybe_future(method(self, *args, **kwargs))
          File "/ebs/anaconda3/lib/python3.4/site-packages/IPython/html/services/sessions/handlers.py", line 53, in post
            model = sm.create_session(path=path, kernel_name=kernel_name)
          File "/ebs/anaconda3/lib/python3.4/site-packages/IPython/html/services/sessions/sessionmanager.py", line 66, in create_session
            kernel_name=kernel_name)
          File "/ebs/anaconda3/lib/python3.4/site-packages/IPython/html/services/kernels/kernelmanager.py", line 84, in start_kernel
            kernel_name=kernel_name, **kwargs)
          File "/ebs/anaconda3/lib/python3.4/site-packages/IPython/kernel/multikernelmanager.py", line 112, in start_kernel
            km.start_kernel(**kwargs)
          File "/ebs/anaconda3/lib/python3.4/site-packages/IPython/kernel/manager.py", line 240, in start_kernel
            **kw)
          File "/ebs/anaconda3/lib/python3.4/site-packages/IPython/kernel/manager.py", line 189, in _launch_kernel
            return launch_kernel(kernel_cmd, **kw)
          File "/ebs/anaconda3/lib/python3.4/site-packages/IPython/kernel/launcher.py", line 213, in launch_kernel
            proc = Popen(cmd, **kwargs)
          File "/ebs/anaconda3/lib/python3.4/subprocess.py", line 859, in __init__
            restore_signals, start_new_session)
          File "/ebs/anaconda3/lib/python3.4/subprocess.py", line 1457, in _execute_child
            raise child_exception_type(errno_num, err_msg)
        FileNotFoundError: [Errno 2] No such file or directory: '/root/anaconda/bin/python'

使用符号链接可实现以下目的:

ln-s/path/to/old/binary/path/to/new/binary

如果收到权限不足错误,请在命令前添加
sudo

在您的情况下,应该将
/root/anaconda/bin/python
符号链接到anaconda文件夹中的二进制文件