繁体   English   中英

Jupyter notebook 应用程序启动错误

[英]Jupyter notebook Application launch error

当我尝试从 Anaconda3 启动 Jupyter Notebook 时,出现此应用程序启动错误:

Fail to get yarn configuration. /root/anaconda3/lib/python3.8/site-packages/jupyterlab/staging/yarn.js:1175
var _ref27 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (dir, relativeDir, ignoreBasenames = new Set()) {
^

SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:140:18)
at node.js:1043:3

[I 22:16:35.920 NotebookApp] JupyterLab extension loaded from /root/anaconda3/lib/python3.8/site-packages/jupyterlab
[I 22:16:35.920 NotebookApp] JupyterLab application directory is /root/anaconda3/share/jupyter/lab
[C 22:16:35.923 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.

我正在使用 kali linux,我尝试更新 jupyter 但没有任何变化。

更新 nodejs 为我解决了这个问题

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
apt-get install -y nodejs

可以参考这个链接https://github.com/yarnpkg/yarn/issues/6914

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM