2016-12-19 29 views
1

我想我需要与以下问题争取一些支持:抱住Jupyter类型错误:执行的readlink:不能指定为无路径参数

[I 01:32:06.539 NotebookApp] KernelRestarter: restarting kernel (4/5) 
WARNING:root:kernel 81762983-2e89-47dc-a6f6-5f36d4f25865 restarted 
Traceback (most recent call last): 
File "/Library/Frameworks/Python.framework/Versions/3.5/bin/jupyter-cling-kernel", line 6, in <module> 
exec(compile(open(__file__).read(), __file__, 'exec')) 
File "/Users/Alexey/cling/share/cling/Jupyter/kernel/scripts/jupyter-cling-kernel", line 4, in <module> 
main() 
File "/Users/Alexey/cling/share/cling/Jupyter/kernel/clingkernel.py", line 317, in main 
ClingKernelApp.launch_instance() 
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/traitlets/config/application.py", line 595, in launch_instance 
app.initialize(argv) 
File "<decorator-gen-122>", line 2, in initialize 
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/traitlets/config/application.py", line 74, in catch_config_error 
return method(app, *args, **kwargs) 
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ipykernel/kernelapp.py", line 421, in initialize 
self.init_kernel() 
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ipykernel/kernelapp.py", line 360, in init_kernel 
user_ns=self.user_ns, 
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/traitlets/config/configurable.py", line 405, in instance 
inst = cls(*args, **kwargs) 
File "/Users/Alexey/cling/share/cling/Jupyter/kernel/clingkernel.py", line 80, in __init__ 
whichCling = os.readlink(shutil.which('cling')) 
TypeError: readlink: can't specify None for path argument 

[W 01:32:09.546 NotebookApp] KernelRestarter:重新启动失败`

在.bash_profile文件:

PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}" 
export PATH 
export CUDA_HOME="/usr/local/cuda" 
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$CUDA_HOME/lib" 
export PATH="$CUDA_HOME/bin:$PATH" 
export PATH="/Developer/cling/bin:$PATH" 

经过无处不在 - 没有什么相似。提前致谢。

回答

0

尝试在.bashrc而不是.bash_profile中添加路径。或者,如果您使用的是虚拟环境,请在根环境中启动笔记本电脑

相关问题