在具有映射主目录

时间:2017-03-22 21:55:44

标签: jupyter-notebook jupyter conda jupyter-console

我在两台服务器上工作,即serverA和serverB。在他们两个上,我的主目录被映射到相同的位置。除主目录外,服务器具有独立的文件系统。这包括系统目录和应用程序目录。因此,如果我的主机名是serverB,我创建了一个特殊的.bashrc_serverb文件。这改变了我的道路。

balter@serverB:~$ echo $PATH /mnt/scratch/miniconda3/bin:/bin:/usr/local/bin:/usr/bin

登录到serverA时,我首先安装了conda和jupyter。显然它创建了一个文件~/.local/share/jupyter/kernels/python3。我还在serverB上安装了conda和jupyter。现在,当我尝试在serverB上运行jupyter notebook或jupyter-console时,我得到:

``` balter @ serverB:〜$ jupyter-console [ZMQTerminalIPythonApp]错误|无法运行命令: [' / home / ... miniconda3 / bin / python',' -m',' ipykernel',' -f',& #39; /home/users/balter/.local/share/jupyter/runtime/kernel-26741.json']     PATH =' / MNT /刮伤/ miniconda3 / bin中:/ bin中:在/ usr / local / bin中:在/ usr / bin中'     与kwargs: {' stdin':-1,' cwd':无,' start_new_session':是的,' stdout':无,' stderr':无}

追踪(最近一次通话):   文件" / mnt / scratch / miniconda3 / bin / jupyter-console",第5行,in     app.main()   文件" /mnt/scratch/miniconda3/lib/python3.5/site-packages/jupyter_core/application.py" ;,第267行,在launch_instance中     return super(JupyterApp,cls).launch_instance(argv = argv,** kwargs)   文件" /mnt/scratch/miniconda3/lib/python3.5/site-packages/traitlets/config/application.py",第657行,在launch_instance中     app.initialize(ARGV)   文件"",第2行,初始化   文件" /mnt/scratch/miniconda3/lib/python3.5/site-packages/traitlets/config/application.py",第87行,在catch_config_error中     return方法(app,* args,** kwargs)   文件" /mnt/scratch/miniconda3/lib/python3.5/site-packages/jupyter_console/app.py" ;,第141行,初始化     self.init_shell()   在init_shell中的文件" /mnt/scratch/miniconda3/lib/python3.5/site-packages/jupyter_console/app.py",第109行     JupyterConsoleApp.initialize(个体经营)   文件" /mnt/scratch/miniconda3/lib/python3.5/site-packages/jupyter_client/consoleapp.py" ;,第334行,初始化     self.init_kernel_manager()   文件" /mnt/scratch/miniconda3/lib/python3.5/site-packages/jupyter_client/consoleapp.py",第288行,在init_kernel_manager中     self.kernel_manager.start_kernel(** kwargs)   文件" /mnt/scratch/miniconda3/lib/python3.5/site-packages/jupyter_client/manager.py" ;,第243行,在start_kernel中     ** KW)   文件" /mnt/scratch/miniconda3/lib/python3.5/site-packages/jupyter_client/manager.py" ;,第189行,在_launch_kernel中     return launch_kernel(kernel_cmd,** kw)   文件" /mnt/scratch/miniconda3/lib/python3.5/site-packages/jupyter_client/launcher.py" ;,第123行,在launch_kernel中     proc = Popen(cmd,** kwargs)   文件" /mnt/scratch/miniconda3/lib/python3.5/subprocess.py",第947行, init     restore_signals,start_new_session)   文件" /mnt/scratch/miniconda3/lib/python3.5/subprocess.py" ;,第1551行,在_execute_child中     raise child_exception_type(errno_num,err_msg) FileNotFoundError:[Errno 2]没有这样的文件或目录:' / home / ... miniconda3 / bin / python' ```

最后一行是至关重要的一行。该路径位于serverA上(为保证安全而模糊的完整路径)。

对此有什么解决方法?

交叉发布为jupyter issue.

0 个答案:

没有答案