Python 在Atom中安装Jupyter笔记本错误:安装“;朱皮特-notebook@0.0.10”;失败

Python 在Atom中安装Jupyter笔记本错误:安装“;朱皮特-notebook@0.0.10”;失败,python,jupyter-notebook,jupyter,atom-editor,Python,Jupyter Notebook,Jupyter,Atom Editor,jupyter笔记本是atom内部的一个包。 以下是软件包的屏幕截图: 不幸的是,当我按下安装按钮时,我得到如下所示的错误消息: 安装“jupyter”-notebook@0.0.10“失败了 当我按下“显示输出”时,错误详细信息如下所示。: bufferutil@1.2.1install/tmp/apm-install-dir-118110-11290-1g90s6g.50fjqq6w29/node_modules/jupyter-notebook/node_modules/bufferut

jupyter笔记本是atom内部的一个包。 以下是软件包的屏幕截图:

不幸的是,当我按下安装按钮时,我得到如下所示的错误消息:

安装“jupyter”-notebook@0.0.10“失败了

当我按下“显示输出”时,错误详细信息如下所示。:

bufferutil@1.2.1install/tmp/apm-install-dir-118110-11290-1g90s6g.50fjqq6w29/node_modules/jupyter-notebook/node_modules/bufferutil 节点gyp重建

runas@3.1.1install/tmp/apm-install-dir-118110-11290-1g90s6g.50fjqq6w29/node_modules/jupyter-notebook/node_modules/runas 节点gyp rebuild/tmp/apm-install-dir-118110-11290-1g90s6g.50FJQ6W29└── (空)

请参阅以下有关此问题的详细信息:

Installing “jupyter-notebook@0.0.10” failed.Hide output…
> bufferutil@1.2.1 install /tmp/apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr/node_modules/jupyter-notebook/node_modules/bufferutil
> node-gyp rebuild


> runas@3.1.1 install /tmp/apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr/node_modules/jupyter-notebook/node_modules/runas
> node-gyp rebuild

/tmp/apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr
└── (empty)


npm WARN deprecated jupyter-js-services@0.21.1: This package has moved to @jupyterlab/services
npm WARN deprecated phosphor@0.5.0: use @phosphor/ packages
gyp ERR! configure error 
gyp ERR! stack Error: Python executable "/snap/atom/116/usr/share/atom/resources/app/apm/bin/python-interceptor.sh" is v3.6.3, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack     at failPythonVersion (/snap/atom/116/usr/share/atom/resources/app/apm/node_modules/node-gyp/lib/configure.js:454:14)
gyp ERR! stack     at /snap/atom/116/usr/share/atom/resources/app/apm/node_modules/node-gyp/lib/configure.js:443:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:197:7)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:877:16)
gyp ERR! stack     at Socket.<anonymous> (internal/child_process.js:334:11)
gyp ERR! stack     at emitOne (events.js:96:13)
gyp ERR! stack     at Socket.emit (events.js:188:7)
gyp ERR! stack     at Pipe._handle.close [as _onclose] (net.js:498:12)
gyp ERR! System Linux 4.13.0-32-generic
gyp ERR! command "/snap/atom/116/usr/share/atom/resources/app/apm/bin/node" "/snap/atom/116/usr/share/atom/resources/app/apm/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr/node_modules/jupyter-notebook/node_modules/bufferutil
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
gyp ERR! configure error 
gyp ERR! stack Error: Python executable "/snap/atom/116/usr/share/atom/resources/app/apm/bin/python-interceptor.sh" is v3.6.3, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack     at failPythonVersion (/snap/atom/116/usr/share/atom/resources/app/apm/node_modules/node-gyp/lib/configure.js:454:14)
gyp ERR! stack     at /snap/atom/116/usr/share/atom/resources/app/apm/node_modules/node-gyp/lib/configure.js:443:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:197:7)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:877:16)
gyp ERR! stack     at Socket.<anonymous> (internal/child_process.js:334:11)
gyp ERR! stack     at emitOne (events.js:96:13)
gyp ERR! stack     at Socket.emit (events.js:188:7)
gyp ERR! stack     at Pipe._handle.close [as _onclose] (net.js:498:12)
gyp ERR! System Linux 4.13.0-32-generic
gyp ERR! command "/snap/atom/116/usr/share/atom/resources/app/apm/bin/node" "/snap/atom/116/usr/share/atom/resources/app/apm/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr/node_modules/jupyter-notebook/node_modules/runas
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr/package.json'
npm WARN apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr No description
npm WARN apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr No repository field.
npm WARN apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr No README data
npm WARN apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.2.1 (node_modules/jupyter-notebook/node_modules/bufferutil):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.2.1 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! Linux 4.13.0-32-generic
npm ERR! argv "/snap/atom/116/usr/share/atom/resources/app/apm/bin/node" "/snap/atom/116/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/User_name/.atom/.apm/.apmrc" "--userconfig" "/home/User_name/.atom/.apmrc" "install" "/tmp/d-118110-11148-wokfwx.il28dxi529/package.tgz" "--runtime=electron" "--target=1.6.15" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! runas@3.1.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the runas@3.1.1 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs runas
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr/npm-debug.log
npm ERR! code 1
安装“jupyter”-notebook@0.0.10“失败。隐藏输出…
> bufferutil@1.2.1install/tmp/apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr/node_modules/jupyter-notebook/node_modules/bufferutil
>节点gyp重建
> runas@3.1.1install/tmp/apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr/node_modules/jupyter-notebook/node_modules/runas
>节点gyp重建
/tmp/apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr
└── (空)
npm警告不推荐的jupyter js-services@0.21.1:此程序包已移动到@jupyterlab/services
npm警告已弃用phosphor@0.5.0:使用@荧光粉/包装
哎呀!配置错误
哎呀!堆栈错误:Python可执行文件“/snap/atom/116/usr/share/atom/resources/app/apm/bin/Python interceptor.sh”是v3.6.3,gyp不支持它。
哎呀!堆栈您可以传递--python开关指向python>=v2.5.0&<3.0.0。
哎呀!failPythonVersion时堆栈(/snap/atom/116/usr/share/atom/resources/app/apm/node_modules/node gyp/lib/configure.js:454:14)
哎呀!堆栈位于/snap/atom/116/usr/share/atom/resources/app/apm/node_modules/node gyp/lib/configure.js:443:9
哎呀!ChildProcess.exithandler处的堆栈(child_process.js:197:7)
哎呀!在emitTwo处堆栈(events.js:106:13)
哎呀!ChildProcess.emit处的堆栈(events.js:191:7)
哎呀!maybeClose的堆栈(内部/子进程js:877:16)
哎呀!在插座处堆叠。(内部/子进程js:334:11)
哎呀!emitOne上的堆栈(events.js:96:13)
哎呀!堆栈位于Socket.emit(events.js:188:7)
哎呀!在管道处堆叠。_handle.close[as _onclose](net.js:498:12)
哎呀!Linux系统4.13.0-32-generic
哎呀!命令“/snap/atom/116/usr/share/atom/resources/app/apm/bin/node”“/snap/atom/116/usr/share/atom/resources/app/apm/node_modules/.bin/node gyp”“重建”
哎呀!cwd/tmp/apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr/node_modules/jupyter-notebook/node_modules/bufferutil
哎呀!节点-v6.9.5
哎呀!节点gyp-v3.4.0
哎呀!不好
哎呀!配置错误
哎呀!堆栈错误:Python可执行文件“/snap/atom/116/usr/share/atom/resources/app/apm/bin/Python interceptor.sh”是v3.6.3,gyp不支持它。
哎呀!堆栈您可以传递--python开关指向python>=v2.5.0&<3.0.0。
哎呀!failPythonVersion时堆栈(/snap/atom/116/usr/share/atom/resources/app/apm/node_modules/node gyp/lib/configure.js:454:14)
哎呀!堆栈位于/snap/atom/116/usr/share/atom/resources/app/apm/node_modules/node gyp/lib/configure.js:443:9
哎呀!ChildProcess.exithandler处的堆栈(child_process.js:197:7)
哎呀!在emitTwo处堆栈(events.js:106:13)
哎呀!ChildProcess.emit处的堆栈(events.js:191:7)
哎呀!maybeClose的堆栈(内部/子进程js:877:16)
哎呀!在插座处堆叠。(内部/子进程js:334:11)
哎呀!emitOne上的堆栈(events.js:96:13)
哎呀!堆栈位于Socket.emit(events.js:188:7)
哎呀!在管道处堆叠。_handle.close[as _onclose](net.js:498:12)
哎呀!Linux系统4.13.0-32-generic
哎呀!命令“/snap/atom/116/usr/share/atom/resources/app/apm/bin/node”“/snap/atom/116/usr/share/atom/resources/app/apm/node_modules/.bin/node gyp”“重建”
哎呀!cwd/tmp/apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr/node_modules/jupyter-notebook/node_modules/runas
哎呀!节点-v6.9.5
哎呀!节点gyp-v3.4.0
哎呀!不好
npm WARN ENOUNT ENOUNT:没有这样的文件或目录,打开“/tmp/apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr/package.json”
npm WARN apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr编号说明
npm WARN apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr无存储库字段。
npm WARN apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr无自述数据
npm WARN apm-install-dir-118110-11148-k6dnh7.k94kzhyqfr无许可证字段。
npm警告可选跳过可选依赖项:bufferutil@1.2.1(node_模块/jupyter笔记本/node_模块/bufferutil):
npm警告可选跳过可选依赖项:bufferutil@1.2.1安装:`node gyp rebuild`
npm警告可选跳过可选依赖项:退出状态1
npm错误!Linux 4.13.0-32-generic
npm错误!argv“/snap/atom/116/usr/share/atom/resources/app/apm/bin/node”“/snap/atom/116/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm cli.js”“--globalconfig”“/home/User_name/.atom/.apmrc”“install”“/tmp/d-118110-11148-wokfwx.il28dxi529/package.tgz”“--runtime=1.6”“--target“--arch=x64”“--全局样式”
npm错误!节点v6.9.5
npm ERR!npm v3.10.10
npm错误!代码错误周期
npm错误!runas@3.1.1安装:`node gyp rebuild`
npm错误!退出状态1
npm错误!
npm ERR!在以下位置失败:runas@3.1.1安装脚本“节点gyp重建”。
npm错误!请确保已安装最新版本的node.js和npm。
npm ERR!如果您这样做,这很可能是runas包的问题,
npm错误!与npm本身无关。
npm ERR!告诉作者此操作在您的系统上失败:
npm错误!节点gyp重建
npm ERR!您可以通过以下方式获取有关如何打开此项目问题的信息:
npm错误!npm错误运行方式
npm错误!或者如果我
Error: Python executable "/snap/atom/116/usr/share/atom/resources/app/apm/bin/python-interceptor.sh" is v3.6.3, which is not supported by gyp