美文网首页
jupyter lab 使用问题记录

jupyter lab 使用问题记录

作者: dc的梦呓 | 来源:发表于2020-01-14 23:03 被阅读0次

1、
链接 jupyter 扩展(jupyter labextension link .)时,有时会出现报错:

PermissionError:[WinError 32]:另一程序正在使用此文件,进程无法访问。

导致链接失败。临时的解决办法为:找到你使用的conda环境,打开 lib/shutil.py,找到 def _rmtree_unsafe,将最后一行

onerror(os.rmdir, path, sys.exc_info())

换为(参考)

if True: # changed temporarily to solve a jupyterinstall issue
        print("os.rmdir: ignoring OSError")
        pass
else:
        onerror(os.rmdir, path, sys.exc_info())

2、npm 获取包问题(rollbackFailedOptional:...)
npm install 安装包时,有时会提示rollbackFailedOptional,这主要是网络问题,可通过设置代理来解决,国内可设置taobao的代理:

npm config set registry http://registry.npm.taobao.org

3、访问jupyterlab网站时,总是提示你要build:
若build成功,则一般下次不会再提示;
也有种改配置的方式,修改 /share/jupyter/lab/setting/pageconfig.json,加个配置: "buildCheck": false
(https://github.com/jupyterlab/jupyterlab/issues/4995)

相关文章

网友评论

      本文标题:jupyter lab 使用问题记录

      本文链接:https://www.haomeiwen.com/subject/iqjzactx.html