2017-06-07 77 views
0

我在mac上运行,安装sagemath和Anaconda也运行。 圣人工作正常,虽然Jupyter笔记本无法运行。Jupyter不能运行sagemath安装

我得到以下错误:

Rois-MBP:~ roi$ /anaconda/bin/jupyter_mac.command ; exit; 
[W 22:32:09.192 NotebookApp] Unrecognized JSON config file version, assuming version 1 
Traceback (most recent call last): 
    File "/anaconda/bin/jupyter-notebook", line 6, in <module> 
    sys.exit(notebook.notebookapp.main()) 
    File "//anaconda/lib/python3.5/site-packages/jupyter_core/application.py", line 267, in launch_instance 
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs) 
    File "//anaconda/lib/python3.5/site-packages/traitlets/config/application.py", line 595, in launch_instance 
    app.initialize(argv) 
    File "<decorator-gen-7>", line 2, in initialize 
    File "//anaconda/lib/python3.5/site-packages/traitlets/config/application.py", line 74, in catch_config_error 
    return method(app, *args, **kwargs) 
    File "//anaconda/lib/python3.5/site-packages/notebook/notebookapp.py", line 1069, in initialize 
    self.init_configurables() 
    File "//anaconda/lib/python3.5/site-packages/notebook/notebookapp.py", line 837, in init_configurables 
    parent=self, 
    File "//anaconda/lib/python3.5/site-packages/nb_conda_kernels/manager.py", line 19, in __init__ 
    specs = self.find_kernel_specs() or {} 
    File "//anaconda/lib/python3.5/site-packages/nb_conda_kernels/manager.py", line 129, in find_kernel_specs 
    self.conda_info = self._conda_info() 
    File "//anaconda/lib/python3.5/site-packages/nb_conda_kernels/manager.py", line 29, in _conda_info 
    p = subprocess.check_output(["conda", "info", "--json"] 
    File "//anaconda/lib/python3.5/subprocess.py", line 626, in check_output 
    **kwargs).stdout 
    File "//anaconda/lib/python3.5/subprocess.py", line 693, in run 
    with Popen(*popenargs, **kwargs) as process: 
    File "//anaconda/lib/python3.5/subprocess.py", line 947, in __init__ 
    restore_signals, start_new_session) 
    File "//anaconda/lib/python3.5/subprocess.py", line 1551, in _execute_child 
    raise child_exception_type(errno_num, err_msg) 
FileNotFoundError: [Errno 2] No such file or directory: 'conda' 
logout 
Saving session... 
...copying shared history... 
...saving history...truncating history files... 
...completed. 

像Spyder的其他应用程序都运行成功。 我可以以某种方式解决它吗?

+0

我有一个类似的问题,除了我的圣人没有用类似的错误工作。这可能有所帮助:https://lists.fedoraproject.org/pipermail/users/2016-February/468495.html – Keivan

+1

谢谢@Keivan,但'.bashrc'文件看起来不错。我找到了另一种方式来做到这一点,我发布了我的答案。 – bobsacameno

回答

0

发现了一种通过圣人运行jupyter笔记本:

只是从终端运行:./sage -n jupyter