Jupyter在macOS上的什么位置安装站点软件包? [英] Where does Jupyter install site-packages on macOS?

查看:325
本文介绍了Jupyter在macOS上的什么位置安装站点软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于当前发货的Jupyter(6.0.0)中的错误,我收到了丢失的文件错误.

Due to a bug in the current shipping Jupyter (6.0.0), I get a missing file error.

找不到/static/components/react/react-dom.production.min.js

https://github.com/jupyter/notebook/pull/4772 #issuecomment-515794823 建议手动添加文件.

但是我找不到绝对路径,所以我不知道将文件放在哪里.

However I cannot locate the absolute path, So I don't know where to put the file.

/static/...在文件系统上的什么位置?

Where is /static/... located on my filesystem?

完整输出:

> jupyter notebook
[I 10:44:20.102 NotebookApp] JupyterLab extension loaded from /usr/local/anaconda3/lib/python3.7/site-packages/jupyterlab
[I 10:44:20.102 NotebookApp] JupyterLab application directory is /usr/local/anaconda3/share/jupyter/lab
[I 10:44:20.104 NotebookApp] Serving notebooks from local directory: /Users/pi
[I 10:44:20.104 NotebookApp] The Jupyter Notebook is running at:
[I 10:44:20.104 NotebookApp] http://localhost:8888/?token=586797fb9049c0faea24f2583c4de32c08d45c89051fb07d
[I 10:44:20.104 NotebookApp]  or http://127.0.0.1:8888/?token=586797fb9049c0faea24f2583c4de32c08d45c89051fb07d
[I 10:44:20.104 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 10:44:20.110 NotebookApp]

    To access the notebook, open this file in a browser:
        file:///Users/pi/Library/Jupyter/runtime/nbserver-65385-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=586797fb9049c0faea24f2583c4de32c08d45c89051fb07d
     or http://127.0.0.1:8888/?token=586797fb9049c0faea24f2583c4de32c08d45c89051fb07d
[E 10:44:21.457 NotebookApp] Could not open static file ''
[W 10:44:21.512 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (::1) 9.02ms referer=http://localhost:8888/tree?token=BLA
[W 10:44:21.548 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (::1) 0.99ms referer=http://localhost:8888/tree?token=BLA

推荐答案

find / -path '*/static/components'  2>/dev/null

得到它:

/usr/local/anaconda3/pkgs/notebook-6.0.0-py37_0/lib/python3.7/site-packages/notebook/static/components
/usr/local/anaconda3/lib/python3.7/site-packages/notebook/static/components

2>/dev/null部分用于扼制警告线,例如权限被拒绝"和不允许操作".它将STDERR重定向到/dev/null.

The 2>/dev/null part is to stifle warning-lines such as "Permission denied" and "Operation not permitted". It redirects STDERR to /dev/null.

这篇关于Jupyter在macOS上的什么位置安装站点软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆