Anaconda启动python 3 jupyter笔记本时出错

Anaconda启动python 3 jupyter笔记本时出错,python,anaconda,jupyter-notebook,Python,Anaconda,Jupyter Notebook,在安装Anaconda3.5之后,我尝试使用jupyter打开python 3笔记本时出错。python 2笔记本电脑没有问题。这里是错误 Failed to run command: ['/Users/sushmitroy/anaconda/envs/py35/bin/python', '-m', 'ipykernel', '-f', '/Users/sushmitroy/Library/Jupyter/runtime/kernel-64704aa3-3d05-4249-8ec2-8a

在安装Anaconda3.5之后,我尝试使用jupyter打开python 3笔记本时出错。python 2笔记本电脑没有问题。这里是错误

Failed to run command:
    ['/Users/sushmitroy/anaconda/envs/py35/bin/python', '-m', 'ipykernel', '-f', '/Users/sushmitroy/Library/Jupyter/runtime/kernel-64704aa3-3d05-4249-8ec2-8a9c98659538.json']
    with kwargs:
    {'stderr': None, 'cwd': '/Users/sushmitroy', 'stdin': -1, 'env': {'HOME': '/Users/sushmitroy', 'LOGNAME': 'sushmitroy', 'PWD': '/Users/sushmitroy', 'TERM': 'xterm-256color', 'SECURITYSESSIONID': '186a8', 'Apple_PubSub_Socket_Render': '/private/tmp/com.apple.launchd.EDDWkpkF2z/Render', 'XPC_SERVICE_NAME': '0', '__CF_USER_TEXT_ENCODING': '0x1F5:0x0:0x0', 'XPC_FLAGS': '0x0', 'SHELL': '/bin/bash', 'JPY_PARENT_PID': '5519', 'TERM_SESSION_ID': '28DC0BD0-4ED2-4C96-B2D9-1375A8C804D8', 'LANG': 'en_US.UTF-8', 'TMPDIR': '/var/folders/bj/2h_6v_sd7rn4_4hvy91gy_rm0000gn/T/', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.vrnAzalULu/Listeners', 'TERM_PROGRAM_VERSION': '361.1', '_': '/Users/sushmitroy/anaconda/bin/jupyter-notebook', 'USER': 'sushmitroy', 'TERM_PROGRAM': 'Apple_Terminal', 'SHLVL': '2', 'PATH': '/Users/sushmitroy/anaconda/bin:/Users/sushmitroy/anaconda/bin:/Users/sushmitroy/anaconda/bin:/Users/sushmitroy/anaconda/bin://anaconda/bin:/Users/sushmitroy/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin'}, 'stdout': None, 'start_new_session': True}

[E 01:25:15.946 NotebookApp] Unhandled error in API request
    Traceback (most recent call last):
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/notebook/base/handlers.py", line 457, in wrapper
        result = yield gen.maybe_future(method(self, *args, **kwargs))
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/tornado/gen.py", line 1008, in run
        value = future.result()
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/tornado/concurrent.py", line 232, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 3, in raise_exc_info
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/tornado/gen.py", line 1014, in run
        yielded = self.gen.throw(*exc_info)
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/notebook/services/sessions/handlers.py", line 62, in post
        kernel_id=kernel_id))
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/tornado/gen.py", line 1008, in run
        value = future.result()
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/tornado/concurrent.py", line 232, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 3, in raise_exc_info
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/tornado/gen.py", line 1014, in run
        yielded = self.gen.throw(*exc_info)
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/notebook/services/sessions/sessionmanager.py", line 79, in create_session
        kernel_name)
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/tornado/gen.py", line 1008, in run
        value = future.result()
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/tornado/concurrent.py", line 232, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 3, in raise_exc_info
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/tornado/gen.py", line 1014, in run
        yielded = self.gen.throw(*exc_info)
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/notebook/services/sessions/sessionmanager.py", line 92, in start_kernel_for_session
        self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/tornado/gen.py", line 1008, in run
        value = future.result()
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/tornado/concurrent.py", line 232, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 3, in raise_exc_info
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/tornado/gen.py", line 282, in wrapper
        yielded = next(result)
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/notebook/services/kernels/kernelmanager.py", line 87, in start_kernel
        super(MappingKernelManager, self).start_kernel(**kwargs)
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/jupyter_client/multikernelmanager.py", line 110, in start_kernel
        km.start_kernel(**kwargs)
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/jupyter_client/manager.py", line 243, in start_kernel
        **kw)
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/jupyter_client/manager.py", line 189, in _launch_kernel
        return launch_kernel(kernel_cmd, **kw)
      File "/Users/sushmitroy/anaconda/lib/python3.5/site-packages/jupyter_client/launcher.py", line 123, in launch_kernel
        proc = Popen(cmd, **kwargs)
      File "/Users/sushmitroy/anaconda/lib/python3.5/subprocess.py", line 950, in __init__
        restore_signals, start_new_session)
      File "/Users/sushmitroy/anaconda/lib/python3.5/subprocess.py", line 1544, in _execute_child
        raise child_exception_type(errno_num, err_msg)
    FileNotFoundError: [Errno 2] No such file or directory: '/Users/sushmitroy/anaconda/envs/py35/bin/python'
[E 01:25:15.954 NotebookApp] {
      "Accept-Encoding": "gzip, deflate",
      "Accept-Language": "en-US,en;q=0.8",
      "Accept": "application/json, text/javascript, */*; q=0.01",
      "Content-Type": "application/json",
      "Host": "localhost:8888",
      "X-Requested-With": "XMLHttpRequest",
      "Content-Length": "76",
      "Connection": "keep-alive",
      "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36",
      "Origin": "http://localhost:8888",
      "Referer": "http://localhost:8888/notebooks/Untitled.ipynb?kernel_name=python3"
    }
[E 01:25:15.955 NotebookApp] 500 POST /api/sessions (::1) 51.32ms referer=http://localhost:8888/notebooks/Untitled.ipynb?kernel_name=python3
无法运行命令:
['/Users/sushmitroy/anaconda/envs/py35/bin/python','-m',ipykernel','-f','/Users/sushmitroy/Library/Jupyter/runtime/kernel-64704aa3-3d05-4249-8ec2-8a9c98659538.json']
使用kwargs:
{'stderr':无,'cwd':'/Users/sushmitroy,'stdin':-1,'env':{'HOME':'/Users/sushmitroy','LOGNAME':'sushmitroy','PWD':'Users/sushmitroy','TERM':'xterm-256color','SECURITYSESSIONID':'186a8','Apple_-PubSub-u-Socket\u-Render':'/private/tmp/com.Apple.launchd.EDDWkpkF2z/Render','XPC\u-SERVICE\u-NAME':'0','CF\u-CF\u-USER\u-TEXT\u-TEXT-ENCODING':'0x1F5:0x1F5:0x0:0x0:0x0,'XPC\xmu-FLAGS','“5519”、“TERM_SESSION_ID”:“28DC0BD0-4ED2-4C96-B2D9-1375A8C804D8”、“LANG”:“en_US.UTF-8”、“TMPDIR”:“var/folders/bj/2h_6v_4hvy91gy_rm0000; gn/T/”、“SSH_AUTH_SOCK”:“private/tmp/com.apple.launchd.vrnazalu/Listeners”、“TERM_程序版本”:“361.1.1”、“JuuHmiu用户”/“Susanamira/PROGRAM”;“Susany用户”;“Trogram用户”;“Susany用户”M':'Apple_Terminal','SHLVL':'2','PATH':'/Users/sushmitroy/anaconda/bin:/Users/sushmitroy/anaconda/bin:/Users/sushmitroy/anaconda/bin:/Users/sushmitroy/anaconda/bin:/Users/sushmitroy/anaconda/bin://anaconda/bin:/Users/sushmitroy/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin“},'stdout':无,'start\u new\u session':True}
[E 01:25:15.946 NotebookApp]API请求中未处理的错误
回溯(最近一次呼叫最后一次):
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/notebook/base/handlers.py”,第457行,在包装器中
结果=未来产量(方法(self,*args,**kwargs))
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/tornado/gen.py”,第1008行,正在运行
value=future.result()
结果文件为“/Users/sushmitroy/anaconda/lib/python3.5/site packages/tornado/concurrent.py”,第232行
提升exc信息(自身exc信息)
文件“”,第3行,在raise_exc_信息中
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/tornado/gen.py”,第1014行,正在运行
屈服=自我生成抛出(*exc_信息)
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/notebook/services/sessions/handlers.py”,第62行,在post中
内核(id=内核(id))
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/tornado/gen.py”,第1008行,正在运行
value=future.result()
结果文件为“/Users/sushmitroy/anaconda/lib/python3.5/site packages/tornado/concurrent.py”,第232行
提升exc信息(自身exc信息)
文件“”,第3行,在raise_exc_信息中
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/tornado/gen.py”,第1014行,正在运行
屈服=自我生成抛出(*exc_信息)
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/notebook/services/sessions/sessionmanager.py”,第79行,在create_session中
内核(名称)
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/tornado/gen.py”,第1008行,正在运行
value=future.result()
结果文件为“/Users/sushmitroy/anaconda/lib/python3.5/site packages/tornado/concurrent.py”,第232行
提升exc信息(自身exc信息)
文件“”,第3行,在raise_exc_信息中
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/tornado/gen.py”,第1014行,正在运行
屈服=自我生成抛出(*exc_信息)
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/notebook/services/sessions/sessionmanager.py”,第92行,在启动会话的内核中
self.kernel\u manager.start\u kernel(path=kernel\u path,kernel\u name=kernel\u name)
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/tornado/gen.py”,第1008行,正在运行
value=future.result()
结果文件为“/Users/sushmitroy/anaconda/lib/python3.5/site packages/tornado/concurrent.py”,第232行
提升exc信息(自身exc信息)
文件“”,第3行,在raise_exc_信息中
包装器中的文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/tornado/gen.py”,第282行
产生=下一个(结果)
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/notebook/services/kernels/kernelmanager.py”,第87行,在start_内核中
超级(MappingKernelManager,self)。启动_内核(**kwargs)
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/jupyter_client/multickernelmanager.py”,第110行,在start_内核中
km.启动内核(**kwargs)
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/jupyter\u client/manager.py”,第243行,在start\u内核中
**千瓦)
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/jupyter\u client/manager.py”,第189行,在启动内核中
返回启动内核(内核命令,**千瓦)
文件“/Users/sushmitroy/anaconda/lib/python3.5/site packages/jupyter\u client/launcher.py”,第123行,在launch\u内核中
proc=Popen(命令,**kwargs)
文件“/Users/sushmitroy/anaconda/lib/python3.5/subprocess.py”,第950行,在__
恢复信号,启动新会话)
文件“/Users/sushmitroy/anaconda/lib/python3.5/subprocess.py”,第1544行,在执行子进程中
引发子项异常类型(errno\u num、err\u msg)
FileNotFoundError:[Errno 2]没有这样的文件或目录:'/Users/sushmitroy/anaconda/envs/py35/bin/python'
[E 01:25:15.954 NotebookApp]{
“接受编码”:“gzip,deflate”,
“接受语言”:“en-US,en;q=0.8”,
“接受”:“应用程序/json,文本/javascript,*/*;q=0.01”,
“内容类型”:“应用程序/json”,
“主机”:“本地主机:8888”,
“X-request-With”:“XMLHttpRequest”,
“内容长度”:“76”,
“连接”:“保持活动状态”,
“用户代理”:“Mozilla/5.0(Macintosh;英特尔Mac OS X 10_11_4)AppleWebKit/537.36(KHTML,如Gecko)Chrome/49.0.2623.112 Safari/537.36”,
“来源”:http://localh
$ source activate <env name>
$ jupyter notebook
$ source deactivate
$ conda create -n py35 python=3.5 anaconda