尽管遵循了安装说明,但是烧杯无法找到Python和Julia安装 [英] Beaker fails to find Python and Julia installations despite following installation instructions

查看:125
本文介绍了尽管遵循了安装说明,但是烧杯无法找到Python和Julia安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近安装了Beaker Notebook,但无法启动Python.

I have recently installed Beaker Notebook but cannot get it to start Python.

我有一个现有的Python安装程序,该安装程序是使用Anaconda安装的(实际上推荐给Beaker使用).我已经编辑了beaker.pref.json以指向我的安装(请参见下文),但它不会启动. Jupyter Notebook和其他Python实现可以正常工作,因此我知道我的安装是完整的.我的beaker.pref.json如下这些说明所示:

I have an existing installation of Python, which I installed using Anaconda (which is actually recommended for Beaker). I have edited beaker.pref.json to point to my installation (see below), but it just won't start. Jupyter Notebook and other Python implementations work fine, so I know my installation is intact. My beaker.pref.json looks like this following these instructions:

{
  "autocomplete-parameters" : "true",
  "pref-format" : "1",
  "allow-anonymous-usage-tracking" : false,
  "languages" : {
    "IPython" : {
      "path" : "/Users/user/anaconda/bin"
    },
    "Python3" : {
      "path" : "/Users/user/anaconda/bin"
    },
    "Julia" : {
      "path" : "/Applications/Julia-0.6.app/Contents/Resources/julia/bin"
    }
  },
  "edit-mode" : "default"
}

which ipython返回/Users/user/anaconda/bin/ipython

which python3返回/Users/user/anaconda/bin/python3

以下是错误消息的样子:

Here is what the error message looks like:

我似乎无法弄清楚我在做什么错.任何帮助将不胜感激!

I cannot seem to figure out what I am doing wrong. Any help would be greatly appreciated!

Jupyter笔记本对于Python和Julia都可以正常工作,因此我认为这些安装本身没有任何问题.

Jupyter notebook works just fine for Python and Julia alike, so I don't think there's anything wrong with these installations per se.

编辑:使用Anaconda安装Python可以解决Python问题.但是,对于朱莉娅来说,这似乎并不那么简单.尽管将Beaker指向Julia可执行文件的位置,但它无法启动内核.

The problems with Python may be resolved by installing Python using Anaconda. However, for Julia this does not seem to be so straightforward. Despite pointing Beaker to the location of the Julia executables, it fails to start the kernel.

推荐答案

在您提供的链接上,作者建议使用此链接:

On the link that you provide, the author recommends to use this:

"path": "/Users/user/anaconda/envs/py3k/bin"

作为您的Python3路径.

as your Python3 path.

然后,您可以尝试手动安装python3和IPython并将它们链接到首选项json.

Then you can try and install python3 and IPython manually and link those to the preferences json.

此问题中,该问题已由以下解决:

In this issue the problem was resolved by the following:

它可能是由于先前安装的ipkernel安装引起的 自制安装的python.以下命令解决了该问题:

Looks like it's caused by a perhaps previous ipkernel install for a homebrew installed python. Following command fixed the problem:

python -m ipykernel install --user Installed kernelspec python2 in
/Users/admin/Library/Jupyter/kernels/python2

这篇关于尽管遵循了安装说明,但是烧杯无法找到Python和Julia安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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