【问题标题】:running "jupyter notebook" on terminal gives "-bash: jupyter: command not found": Without Anaconda on Mac在终端上运行“jupyter notebook”会给出“-bash: jupyter: command not found”:Mac 上没有 Anaconda
【发布时间】:2020-07-15 00:25:01
【问题描述】:

我已经安装了 Python 3.8.4。然后在 MacOS Catalina 上通过“sudo easy_install pip”安装 pip。我现在有两个版本的 python (/usr/bin/python (2.7) 和 /usr/local/bin/python3)。我运行“pip install jupyterlab”。安装成功,但是当我运行“jupyter notebook”时,它显示“-bash: jupyter: command not found”。我想在没有 anaconda 的情况下安装 jupyter notebook。

【问题讨论】:

  • 您能否将pip --version 的输出包括在内。我认为 jupyter 使用了错误的解释器。
  • pip 20.1.1 来自 /Users/soumen/Library/Python/2.7/lib/python/site-packages/pip (python 2.7),我的 python3 位于:/Library/Frameworks/Python。框架/版本/3.8/bin/python3

标签: python-3.x pip jupyter-notebook macos-catalina


【解决方案1】:

感谢@tbhaxor。我已经修好了。我已经从网站https://pip.pypa.io/en/stable/installing/ 下载了“get-pip.py”(在终端上复制并粘贴“curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py”) .然后运行“sudo python3 get-pip.py”。它会询问管理员密码来安装。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-08-04
    • 1970-01-01
    • 2022-12-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-30
    相关资源
    最近更新 更多