在Mac OS Catalina上找不到Jupyter命令

时间:2020-01-31 15:23:22

标签: jupyter-notebook jupyter macos-catalina

我正在尝试在Mac OS Catalina上运行Jupyter Notebook。我遵循了基本说明:

pip3 install jupyter

我在堆栈溢出时尝试了其他答案中提到的所有内容。我已经编辑了.bash_profile文件,并尝试使用

启动笔记本
~/local/bin/jupyter

但是没有任何效果。我的.bash_profile看起来像这样:

export PATH="/usr/local/mysql/bin:/usr/local/bin:/usr/local/git/bin:$PATH"
# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH

如何在Mac OS Catalina上运行Jupyter Notebook?

1 个答案:

答案 0 :(得分:2)

我遇到了类似的烦人问题,这是我的一站式解决方案:

  • 打开终端并输入:

    \DB::table('Service_prices')
         ->join('Services', 'Services.id', 'Service_prices.service_id')
         ->join('Roles', 'Roles.id', 'Service_prices.id')
         ->join('Users', 'Users.role_id', 'Roles.id')
         ->where('Services.id', $service_id)
         ->select('Service_prices.id as service_price_id', 'Roles.id as role_id', 'Services.id as service_id', 'users.id as user_id')
         ->get();
    
  • 如果您尚未在Mac上安装brew install jupyter ,请按照此处的说明进行操作:https://brew.sh/

    brew
  • 等待大约 10 分钟,直到安装完成,然后再次尝试/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"


说明:

它有助于下载许多与“ Catalina”相关的软件包,例如

jupyter

请参阅 https://github.com/dotnet/interactive/issues/34 有关此问题的最新讨论。


来自评论:

如果上述方法无效,请尝试打开==> Downloading https://homebrew.bintray.com/bottles/jupyterlab-2.1.5.catalina.bottle.tar.gz ...... ==> Downloading https://homebrew.bintray.com/bottles/ipython-7.16.1.catalina.bottle.tar.gz ...... 并在其中安装Jupyter扩展。