【问题标题】:unable to install jupyter-notebook无法安装 jupyter-notebook
【发布时间】:2020-08-18 10:23:21
【问题描述】:

我正在尝试安装 jupyter-notebook。我运行 jupyter --h 命令,它显示以下内容 jupyter core : 4.6.3 jupyter-notebook : not installed qtconsole : 4.7.6 ipython : 5.10.0 ipykernel : 4.10.1 jupyter client : 5.3.5 jupyter lab : 0.33.12

所以要安装我运行 pip install jupyter-notebook 它显示了这个无法理解的错误

错误:找不到满足 jupyter-notebook 要求的版本(来自版本:无) 错误:没有为 jupyter-notebook 找到匹配的分布

enter image description here

【问题讨论】:

    标签: python macos


    【解决方案1】:

    根据您使用的 IDE,您可以切换到 VS Studio,我将它用于 Python、C#、Java、Dart 等,它非常好,因此您可以在多种语言上使用它,如果您安装 Python Extension Jupiter Notebook内置

    【讨论】:

    • 但是为什么我的电脑无法安装 jupyter notebook
    • 通过您的代码,您似乎正在尝试在未安装 jupyter 命令的情况下运行它。尝试在终端中运行 pip install jupyterlab 然后 pip install notebook
    【解决方案2】:

    错误提示缺少“QTConsole”。也许,您可以尝试使用 -

    pip install qtconsole
    

    基本上,经验法则是,如果在安装特定应用程序时,它会显示这种类型的错误,这意味着它有一个依赖项,需要先安装才能继续。您可以查看它目前拥有的版本,并为您要下载的应用程序找到兼容的版本。

    参考:https://pypi.org/project/qtconsole/

    【讨论】:

    • 我已经安装了 qtconsole,当我运行 jupyter --version 时它仍然显示 jupyter-notebook not installed。此外,当我运行 jupyter notebook 时,它会显示此错误:
    • :回溯(最近一次调用最后):文件“/usr/local/bin/jupyter”,第 8 行,在 sys.exit(main()) 文件“/Users/ujjwal /Library/Python/2.7/lib/python/sitepackages/jupyter_core/command.py”,第 247 行,在主命令 = _jupyter_abspath(子命令)文件“/Users/ujjwal/Library/Python/2.7/lib/python/site- packages/jupyter_core/command.py",第 134 行,在 _jupyter_abspath '找不到 Jupyter 命令{}。'.format(jupyter_subcommand) 异常:找不到 Jupyter 命令jupyter-notebook
    • 你试过通过anaconda安装吗?如果你这样做,jupyter notebook 会附带它。下载说明 - anaconda.com/products/individual 关闭后,转到终端并输入:jupyter notebook 注意:我建议使用更新的 python 创建一个新环境,可能是 3.7。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-21
    • 2017-07-16
    • 1970-01-01
    • 2018-02-18
    • 2017-08-25
    相关资源
    最近更新 更多